aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
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 %}