improve navigation

This commit is contained in:
Pat Dryburgh
2018-08-12 15:07:39 -07:00
parent c44d859440
commit 10e959d7aa
4 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,3 @@
- title: Home
url: /
- title: About
url: /about.html

View File

@ -3,8 +3,13 @@
{% if menu %}
<nav class="site-navigation">
<ul>
{% for item in site.data.menu %}
<li>
<a href="{{ '/' | prepend: site.baseurl }}">
Home
</a>
</li>
{% for item in site.data.menu %}
<li {% if page.url == item.url %}class="active"{% endif %}>
{% if item.url contains 'http' %}
<a href="{{ item.url }}">
{{ item.title }}

View File

@ -2,7 +2,11 @@
layout: default
---
{% if site.data.menu %}
{% include menu.html %}
{% else %}
{% include back-link.html %}
{% endif %}
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

View File

@ -14,6 +14,9 @@
font-size: .875em;
font-variant: small-caps;
margin: 0;
&.active a {
text-decoration: underline;
}
}
.site-navigation a {