aboutsummaryrefslogtreecommitdiff
path: root/_layouts
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
parentSort pastebins listing by date (diff)
downloadeuandre.org-381ac1fc3d98ecd0b6f5215c54f907eac6d2b873.tar.gz
euandre.org-381ac1fc3d98ecd0b6f5215c54f907eac6d2b873.tar.xz
html tidy wip
Diffstat (limited to '')
-rw-r--r--_layouts/default.html2
-rw-r--r--_layouts/index.html20
2 files changed, 12 insertions, 10 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 1ff8c1d..6416f57 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -57,7 +57,7 @@
</header>
<main>
- <h1>{{ page.title }}</h1>
+ {% if page.title %}<h1>{{ page.title }}</h1>{% endif %}
{{ content }}
</main>
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 %}