add titleless posts and a menu in the footer

This commit is contained in:
Pat Dryburgh
2018-08-12 09:55:37 -07:00
parent 11adcb038a
commit ed34b49645
13 changed files with 104 additions and 77 deletions

21
_includes/menu.html Normal file
View File

@ -0,0 +1,21 @@
{% assign menu = site.data.menu %}
{% if menu %}
<nav class="site-navigation">
<ul>
{% for item in site.data.menu %}
<li>
{% if item.url contains 'http' %}
<a href="{{ item.url }}">
{{ item.title }}
</a>
{% else %}
<a href="{{ item.url | prepend: site.baseurl }}">
{{ item.title }}
</a>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
{% endif %}