Account for when no articles exist

When no articles exist, the navbar doesn't show the 'Articles' title, and the home page displays an appropriate message
This commit is contained in:
Matthew Grove
2019-01-28 14:06:27 +00:00
parent 2480703ba1
commit 607ec3990c
6 changed files with 17 additions and 163 deletions

View File

@@ -12,6 +12,7 @@
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">home</i>
<span class="mdc-list-item__text">Home Page</span>
</a>
{% if site.categories.articles %}
<div class="mdc-list-group">
<h3 class="mdc-list-group__subheader">Articles</h3>
{% for page in site.categories.articles %}
@@ -21,6 +22,7 @@
</a>
{% endfor %}
</div>
{% endif %}
</nav>
</div>
</aside>