mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user