aboutsummaryrefslogtreecommitdiff
path: root/_layouts/index.html
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-12 09:26:16 -0300
committerEuAndreh <eu@euandre.org>2020-02-12 09:26:16 -0300
commit381ac1fc3d98ecd0b6f5215c54f907eac6d2b873 (patch)
tree1f1cd3dfbcc09dd6712e0a57e8e1ea458bd51274 /_layouts/index.html
parentSort pastebins listing by date (diff)
downloadeuandre.org-381ac1fc3d98ecd0b6f5215c54f907eac6d2b873.tar.gz
euandre.org-381ac1fc3d98ecd0b6f5215c54f907eac6d2b873.tar.xz
html tidy wip
Diffstat (limited to '_layouts/index.html')
-rw-r--r--_layouts/index.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/_layouts/index.html b/_layouts/index.html
index 3c145d0..73b97ef 100644
--- a/_layouts/index.html
+++ b/_layouts/index.html
@@ -2,12 +2,14 @@
layout: default
---
<h1>{{ site.t.recent_posts[page.lang] }}</h1>
-<ul>
- {%- for post in site.posts -%}
- {% if post.lang == page.lang %}
- <li>
- <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: site.t.date_format[page.lang] }}
- </li>
- {% endif %}
- {%- endfor -%}
-</ul>
+{% if site.posts.size > 0 %}
+ <ul>
+ {%- for post in site.posts -%}
+ {% if post.lang == page.lang %}
+ <li>
+ <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: site.t.date_format[page.lang] }}
+ </li>
+ {% endif %}
+ {%- endfor -%}
+ </ul>
+{% endif %}