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.' }}">
|
2014-07-12 21:22:47 +02:00
|
|
|
{{ post.title | titlecase }} <i class="icon 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>
|
2014-07-12 21:22:47 +02:00
|
|
|
<a class="more-link" href="{{ post.linkurl }}">Go to source <i class="icon icon-forward"></i></a>
|
2013-12-07 16:26:51 +01:00
|
|
|
<a class="permalink-link" href="{{ post.url | append: '/' }}" rel="tooltip" title="Permalink">∞</a>
|
2013-11-24 17:31:03 +01:00
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{% elsif post.layout == "photo" %}
|
|
|
|
|
2013-12-15 13:16:54 +01:00
|
|
|
<article class="hentry format-photo">
|
2013-11-24 17:31:03 +01:00
|
|
|
|
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">
|
2014-07-12 21:22:47 +02:00
|
|
|
|
2013-11-24 17:31:03 +01:00
|
|
|
{% picture {{ post.image }} %}
|
2014-07-12 21:22:47 +02:00
|
|
|
|
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>
|
|
|
|
|
2014-07-12 21:22:47 +02:00
|
|
|
{% else %}
|
|
|
|
|
2013-11-24 17:31:03 +01:00
|
|
|
<article class="hentry format-post">
|
|
|
|
<header>
|
2013-12-07 16:26:51 +01:00
|
|
|
<h1 class="entry-title"><a href="{{ post.url | append: '/' }}">{{ post.title | titlecase }}</a></h1>
|
2013-11-24 17:31:03 +01:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="entry-content">
|
2014-07-12 21:22:47 +02:00
|
|
|
|
2013-11-24 17:31:03 +01:00
|
|
|
{% if post.image %}
|
2013-12-07 16:26:51 +01:00
|
|
|
<a href="{{ post.url | append: '/' }}">
|
2013-11-24 17:31:03 +01:00
|
|
|
{% picture {{ post.image }} class="teaser" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2014-07-12 21:22:47 +02:00
|
|
|
|
2013-11-24 17:31:03 +01:00
|
|
|
{% capture has_more %}{{ post.content | has_more }}{% endcapture %}
|
2014-07-12 21:22:47 +02:00
|
|
|
|
2013-11-24 17:31:03 +01:00
|
|
|
{% if has_more == 'true' %}
|
2014-07-12 21:22:47 +02:00
|
|
|
{{ post.content | post.excerpt | excerpt | markdownify }}
|
2013-11-24 17:31:03 +01:00
|
|
|
{% else %}
|
2013-12-04 22:36:53 +01:00
|
|
|
{% unless post.categories contains "goodies" and page.path contains "goodies" %}
|
2013-12-02 22:19:13 +01:00
|
|
|
{{ post.excerpt | markdownify }}
|
|
|
|
{% endunless %}
|
2013-11-24 17:31:03 +01:00
|
|
|
{% endif %}
|
2014-07-12 21:22:47 +02:00
|
|
|
|
2013-12-04 22:36:53 +01:00
|
|
|
{% if post.categories contains "goodies" and page.path contains "goodies" %}
|
2013-12-02 22:19:13 +01:00
|
|
|
<footer class="goodie-actions">
|
|
|
|
|
|
|
|
<p class="info col3">
|
2014-07-12 21:22:47 +02:00
|
|
|
<a class="btn icon icon-info" href="{{ post.url | append: '/' }}">Release Post</a>
|
2013-12-02 22:19:13 +01:00
|
|
|
</p>
|
2013-11-24 17:31:03 +01:00
|
|
|
|
2013-12-02 22:19:13 +01:00
|
|
|
{% if post.download %}
|
|
|
|
<p class="download col3">
|
2014-07-12 21:22:47 +02:00
|
|
|
<a class="btn icon icon-download" href="/media/{{ post.download }}">Download <span>zip</span></a>
|
2013-12-02 22:19:13 +01:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</footer>
|
|
|
|
{% endif %}
|
2014-07-12 21:22:47 +02:00
|
|
|
|
2013-12-04 22:36:53 +01:00
|
|
|
{% unless page.path contains "goodies" %}
|
2014-07-12 21:22:47 +02:00
|
|
|
<a class="more-link" href="{{ post.url | append: '/' }}">Continue reading <i class="icon icon-arrow-right"></i></a>
|
2013-12-04 22:36:53 +01:00
|
|
|
{% endunless %}
|
2013-11-24 17:31:03 +01:00
|
|
|
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{% endif %}
|