2018-01-16 22:08:47 -05:00
|
|
|
{% macro list(posts, url) %}
|
|
|
|
<ul>
|
|
|
|
{%- for post in posts -%}
|
|
|
|
<li{% if post.url == url %} class="post-active"{% endif %}>
|
2018-01-16 22:20:54 -05:00
|
|
|
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
|
2018-01-16 22:08:47 -05:00
|
|
|
Tags: {{ post.data.tags | join(", ") }}
|
|
|
|
{%- if post.url == url %}
|
|
|
|
(You are here)
|
|
|
|
{% endif -%}
|
|
|
|
</li>
|
|
|
|
{%- endfor -%}
|
|
|
|
</ul>
|
|
|
|
{% endmacro %}
|