improve site navigation

This commit is contained in:
Pat Dryburgh
2018-08-08 22:07:14 -07:00
parent 1053cda855
commit 492016151a
4 changed files with 30 additions and 15 deletions

View File

@ -23,9 +23,15 @@ layout: default
<ul>
{% for item in site.data.menu %}
<li>
<a href="{{ item.url | prepend: baseurl }}">
{{ item.title }}
</a>
{% 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>