popov.link/_includes/posts.html
Valentin Popov 11c402a293
Simplified data generation code
Signed-off-by: Valentin Popov <info@valentineus.link>
2020-01-23 20:23:28 +04:00

11 lines
371 B
HTML

<h2>Posts</h2>
<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url | relative_url | uri_escape }}">{{ post.title | strip | normalize_whitespace | xml_escape }}</a>
(<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%d-%m-%Y' | strip | normalize_whitespace | xml_escape }}</time>)
</li>
{% endfor %}
</ul>