blog/templates/partials/articles-index.html

14 lines
501 B
HTML
Raw Permalink Normal View History

<ul class="articles-index">
{% for page in section.pages %}
{%- if max_articles is defined and loop.index > max_articles -%}{%- break -%}{%- endif -%}
<li>
<span class="date">
<meta itemprop="datePublished" content="{{ page.date | date(format='%+') }}">
{{ page.date | date(format='%Y-%m-%d') }}
</span>
<span class="title">
<a href="{{ page.permalink }}">{{ page.title }}</a>
</span>
</li>
{% endfor %}
</ul>