2013-11-24 17:31:03 +01:00
|
|
|
|
|
|
|
{% if post.layout == "link" %}
|
|
|
|
|
|
|
|
<article class="hentry format-link">
|
|
|
|
<header>
|
|
|
|
<h1 class="entry-title">
|
2013-11-29 20:53:16 +01:00
|
|
|
<a href="{{ post.linkurl }}" title="Go to source: {{ post.linkurl | remove:'http://' | remove:'https://' | remove:'www.' }}">
|
2013-12-01 18:23:11 +01:00
|
|
|
{{ post.title | titlecase }} <i class="icon-forward"></i>
|
2013-11-29 20:53:16 +01:00
|
|
|
<span class="linkurl">{{ post.linkurl | remove:'http://' | remove:'https://' | remove:'www.' | split:'/' | first }}</span>
|
2013-11-24 17:55:57 +01:00
|
|
|
</a>
|
2013-11-24 17:31:03 +01:00
|
|
|
</h1>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="entry-content">
|
2013-11-28 22:03:13 +01:00
|
|
|
{{ post.content | markdownify }}
|
2013-11-24 17:31:03 +01:00
|
|
|
<p>
|
|
|
|
<a class="more-link" href="{{ post.linkurl }}">Go to source <i class="icon-forward"></i></a>
|
|
|
|
<a class="permalink-link" href="{{ post.url }}" rel="tooltip" title="Permalink">∞</a>
|
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{% elsif post.layout == "photo" %}
|
|
|
|
|
|
|
|
<article class="hentry format-image">
|
|
|
|
|
2013-11-24 18:00:20 +01:00
|
|
|
<a class="photo-link" href="{{ post.url }}">
|
2013-11-24 17:31:03 +01:00
|
|
|
<figure class="hmedia">
|
|
|
|
|
|
|
|
{% picture {{ post.image }} %}
|
|
|
|
|
2013-12-01 18:23:11 +01:00
|
|
|
<figcaption class="entry-title fn">{{ post.title | titlecase }}</figcaption>
|
2013-11-24 17:31:03 +01:00
|
|
|
</figure>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<article class="hentry format-post">
|
|
|
|
<header>
|
2013-12-01 18:23:11 +01:00
|
|
|
<h1 class="entry-title"><a href="{{ post.url }}">{{ post.title | titlecase }}</a></h1>
|
2013-11-24 17:31:03 +01:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="entry-content">
|
|
|
|
|
|
|
|
{% if post.image %}
|
|
|
|
<a href="{{ post.url }}">
|
|
|
|
{% picture {{ post.image }} class="teaser" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% capture has_more %}{{ post.content | has_more }}{% endcapture %}
|
|
|
|
|
|
|
|
{% if has_more == 'true' %}
|
2013-11-28 22:03:13 +01:00
|
|
|
{{ post.content | post.excerpt | excerpt | markdownify }}
|
2013-11-24 17:31:03 +01:00
|
|
|
{% else %}
|
2013-11-28 22:03:13 +01:00
|
|
|
{{ post.excerpt | markdownify }}
|
2013-11-24 17:31:03 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<a class="more-link" href="{{ post.url }}">Continue reading <i class="icon-arrow-right"></i></a>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{% endif %}
|