funky/_includes/post-list.html

35 lines
843 B
HTML
Executable File

{% if paginator.posts %}
<ul class="list list--posts">
{% for page in paginator.posts %}
<li class="item item--post">
<article class="article article--post typeset">
<h2><a href="{{ page.url }}" title="{{ page.title }}">{{ page.title }}</a></h2>
{% include post-meta.html %}
{{ page.excerpt | markdownify | truncatewords: 60 }}
</article>
</li>
{% endfor %}
</ul>
{% include post-pagination.html %}
{% else %}
<ul class="list list--posts">
{% for page in site.posts %}
<li class="item item--post">
<article class="article article--post typeset">
<h2><a href="{{ page.url }}" title="{{ page.title }}">{{ page.title }}</a></h2>
{% include post-meta.html %}
{{ page.excerpt | markdownify | truncatewords: 60 }}
</article>
</li>
{% endfor %}
</ul>
{% endif %}