1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-28 16:48:00 +02:00

use only one articles list template

This commit is contained in:
Matthias Kretschmann 2013-12-02 22:19:13 +01:00
parent 0e5eab0d0b
commit fc83466045
7 changed files with 31 additions and 51 deletions

View File

@ -35,30 +35,48 @@
</article>
{% else %}
{% else %}
<article class="hentry format-post">
<header>
<h1 class="entry-title"><a href="{{ post.url }}">{{ post.title | titlecase }}</a></h1>
</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' %}
{{ post.content | post.excerpt | excerpt | markdownify }}
{{ post.content | post.excerpt | excerpt | markdownify }}
{% else %}
{{ post.excerpt | markdownify }}
{% unless post.categories contains "goodies" %}
{{ post.excerpt | markdownify }}
{% endunless %}
{% endif %}
{% if post.categories contains "goodies" %}
<footer class="goodie-actions">
<a class="more-link" href="{{ post.url }}">Continue reading <i class="icon-arrow-right"></i></a>
<p class="info col3">
<a class="btn icon-info" href="{{ post.url }}">Release Post</a>
</p>
{% if post.download %}
<p class="download col3">
<a class="btn icon-download" href="/media/{{ post.download }}">Download <span>zip</span></a>
</p>
{% endif %}
</footer>
{% else %}
<a class="more-link" href="{{ post.url }}">Continue reading <i class="icon-arrow-right"></i></a>
{% endif %}
</section>
</article>

View File

@ -1,38 +0,0 @@
{% if post.categories contains "goodies" %}
<article class="hentry goodie">
<header>
<h1 class="entry-title"><a href="{{ post.url }}">{{ post.title | titlecase }}</a></h1>
</header>
<section class="entry-content">
{% if post.image %}
<a href="{{ post.url }}">
{% picture {{ post.image }} class="teaser" %}
</a>
{% else %}
{{ post.excerpt }}
{% endif %}
<footer class="goodie-actions">
<p class="info col3">
<a class="btn icon-info" href="{{ post.url }}">Release Post</a>
</p>
{% if post.download %}
<p class="download col3">
<a class="btn icon-download" href="/media/{{ post.download }}">Download <span>zip</span></a>
</p>
{% endif %}
</footer>
</section>
</article>
{% else %}
{% include articles.html %}
{% endif %}

View File

@ -11,7 +11,7 @@ category: design
{% for post in paginator.posts %}
{% include category_index.html %}
{% include articles.html %}
{% endfor %}

View File

@ -11,7 +11,7 @@ category: goodies
{% for post in paginator.posts %}
{% include category_index.html %}
{% include articles.html %}
{% endfor %}

View File

@ -10,7 +10,7 @@ category: personal
{% for post in paginator.posts %}
{% include category_index.html %}
{% include articles.html %}
{% endfor %}

View File

@ -10,7 +10,7 @@ category: photography
{% for post in paginator.posts %}
{% include category_index.html %}
{% include articles.html %}
{% endfor %}

View File

@ -14,7 +14,7 @@ category: photos
{% for post in paginator.posts %}
{% include category_index.html %}
{% include articles.html %}
{% endfor %}