aboutsummaryrefslogtreecommitdiff
path: root/_includes/posts.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/posts.html')
-rw-r--r--_includes/posts.html12
1 files changed, 2 insertions, 10 deletions
diff --git a/_includes/posts.html b/_includes/posts.html
index 6dc0d2b..fee0c31 100644
--- a/_includes/posts.html
+++ b/_includes/posts.html
@@ -3,16 +3,8 @@
<ul>
{% for post in site.posts %}
<li>
- {% assign date = post.date | date: '%d-%m-%Y' | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
- {% assign title = post.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
- {% assign url = post.url | relative_url | uri_escape %}
-
- <a href="{{ url }}">{{ title }}</a>
- (<time datetime="{{ post.date | date_to_xmlschema }}">{{ date }}</time>)
+ <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>)
</li>
{% endfor %}
</ul>
-
-{% assign date = "" %}
-{% assign title = "" %}
-{% assign url = "" %}