You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
web/templates/macros.html

22 lines
532 B
HTML

{% macro nav_list_items(items) %}
{% if items %}
<ul>
{% for item in items %}
<li><a href="{{ item.path }}">{{ item.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endmacro list_items %}
{% macro list_posts(section) %}
{% for post in section.pages %}
<a href="{{ post.permalink }}">
<article>
<div class="title">{{ post.title }}</div>
<p>{{ post.summary | safe }}</p>
<div class="date">{{ post.date | date(format="%d.%m.%Y")}}</div>
</article>
</a>
{% endfor %}
{% endmacro list_posts %}