13 lines
324 B
Plaintext
13 lines
324 B
Plaintext
{% macro list(posts, url) %}
|
|
<ul>
|
|
{%- for post in posts -%}
|
|
<li{% if post.url == url %} class="post-active"{% endif %}>
|
|
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
|
|
Tags: {{ post.data.tags | join(", ") }}
|
|
{%- if post.url == url %}
|
|
(You are here)
|
|
{% endif -%}
|
|
</li>
|
|
{%- endfor -%}
|
|
</ul>
|
|
{% endmacro %} |