Made display of blog posts heading conditional on available posts
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -5,9 +5,9 @@ layout: default
|
|||||||
<h1>2martens.de</h1>
|
<h1>2martens.de</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Welcome on my personal website. This home page is comparable to the README of this website. You can find a
|
Welcome on my personal website. This home page is comparable to the README of this website. You can find the features
|
||||||
<a href="#readers-guide">readers guide</a> here. Furthermore you will find below all
|
and a <a href="#readers-guide">readers guide</a> here. {% if site.categories['site'].size > 0 %}
|
||||||
<a href="#blog-posts">blog posts</a> related to the site itself.
|
Furthermore you will find below all <a href="#blog-posts">blog posts</a> related to the site itself.{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>Features</h2>
|
<h2>Features</h2>
|
||||||
@ -47,6 +47,7 @@ layout: default
|
|||||||
under G20. The Blog category contains all posts that don't match other categories.
|
under G20. The Blog category contains all posts that don't match other categories.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{% if site.categories['site'].size > 0 %}
|
||||||
<h2 id="blog-posts">Blog posts</h2>
|
<h2 id="blog-posts">Blog posts</h2>
|
||||||
|
|
||||||
<ul class="post-list list-unstyled">
|
<ul class="post-list list-unstyled">
|
||||||
@ -59,3 +60,4 @@ layout: default
|
|||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user