Add note if there are no posts yet

This commit is contained in:
2021-05-03 16:50:49 +02:00
parent 7e24d0ca9d
commit d601265325
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<footer class="footer"> <footer class="footer">
<a class="footer_item" href="https://github.com/Siphalor">github</a> <a class="footer_item" href="https://github.com/Siphalor">about</a>
<a class="footer_item" href="/feed.xml">rss</a> <a class="footer_item" href="/feed.xml">rss</a>
<span class="footer_item">&copy; {{ site.time | date: "%Y" }}</span> <span class="footer_item">&copy; {{ site.time | date: "%Y" }}</span>
<small class="footer_copyright"> <small class="footer_copyright">

View File

@@ -26,4 +26,8 @@ comments: false
<a href="{{ post.url }}">{{ post.title | escape }}</a> <a href="{{ post.url }}">{{ post.title | escape }}</a>
</h3> </h3>
</article> </article>
{%- else -%}
<div style="text-align:center">
No posts yet :,(
</div>
{%- endfor -%} {%- endfor -%}