Modify nav_list and styling

This commit is contained in:
Michael Rose 2016-03-25 20:57:52 -04:00
parent 9ea795ef95
commit b04ede54ab
3 changed files with 5 additions and 5 deletions

View file

@ -8,13 +8,13 @@
{% if nav.children != null %}
<ul>
{% for child in nav.children %}
{% assign nav_url = child.path | prepend: "/" | prepend: page.sidebar.nav | prepend: "/" | append: "/" | prepend: base_path %}
{% if nav_url contains page.url %}
{% assign nav_url = child.path | prepend: "/" | prepend: page.sidebar.nav | prepend: "/" | append: "/" %}
{% if nav_url == page.url %}
{% assign active = "active" %}
{% else %}
{% assign active = "" %}
{% endif %}
<li><a href="{{ nav_url }}" class="{{ active }}">{{ child.title }}</a></li>
<li><a href="{{ nav_url | prepend: base_path }}" class="{{ active }}">{{ child.title }}</a></li>
{% endfor %}
</ul>
{% endif %}

View file

@ -249,7 +249,7 @@
margin: 10px 0;
padding: 10px 0;
font-family: $sans-serif-narrow;
font-size: 14px;
font-size: 16px;
font-weight: bold;
border-bottom: 1px solid $border-color;
}

File diff suppressed because one or more lines are too long