Initial commit.
This commit is contained in:
13
_includes/postlist.njk
Normal file
13
_includes/postlist.njk
Normal file
@@ -0,0 +1,13 @@
|
||||
{% macro list(posts, url) %}
|
||||
<ul>
|
||||
{%- for post in posts -%}
|
||||
<li{% if post.url == url %} class="post-active"{% endif %}>
|
||||
<a href="{{ post.url | absoluteUrl }}">{{ post.data.title }}</a>
|
||||
Tags: {{ post.data.tags | join(", ") }}
|
||||
{%- if post.url == url %}
|
||||
(You are here)
|
||||
{% endif -%}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user