Merge pull request #43 from maxheld83/link-post
Link posts / Linklog (john gruber style, similar to hpstr)
This commit is contained in:
@ -47,8 +47,14 @@
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
<article>
|
||||
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||
{% if post.link %}
|
||||
<h4><a href="{{ post.link }}" target="_blank" title="{{ post.title }}">{{ post.title }}</a></h4>
|
||||
<p><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.date | date: "%B %d %H:%M %Z"}}</p>
|
||||
<p>{{ post.content }}</p>
|
||||
{% else %}
|
||||
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div><!-- /#index -->
|
||||
|
@ -36,7 +36,11 @@
|
||||
</div>
|
||||
<article>
|
||||
<div class="headline-wrap">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% if page.link %}
|
||||
<h1><a href="{{ page.link }}">{{ page.title }}</a></h1>
|
||||
{% else %}
|
||||
<h1><a href="{{ site.url }}{{ page.url }}" rel="bookmark" title="{{ page.title }}">{{ page.title }}</a></h1>
|
||||
{% endif %}
|
||||
</div><!--/ .headline-wrap -->
|
||||
<div class="article-wrap">
|
||||
{{ content }}
|
||||
|
Reference in New Issue
Block a user