0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-04 00:20:26 +03:00

Simplified data generation code

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2020-01-23 20:21:21 +04:00
parent 28aec1dfdd
commit 11c402a293
7 changed files with 17 additions and 17 deletions

View File

@ -3,8 +3,8 @@
<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url | relative_url | uri_escape }}">{{ post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</a>
(<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: '%d-%m-%Y' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}</time>)
<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>