Modify nav_list and styling
This commit is contained in:
parent
9ea795ef95
commit
b04ede54ab
3 changed files with 5 additions and 5 deletions
|
@ -8,13 +8,13 @@
|
||||||
{% if nav.children != null %}
|
{% if nav.children != null %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for child in nav.children %}
|
{% for child in nav.children %}
|
||||||
{% assign nav_url = child.path | prepend: "/" | prepend: page.sidebar.nav | prepend: "/" | append: "/" | prepend: base_path %}
|
{% assign nav_url = child.path | prepend: "/" | prepend: page.sidebar.nav | prepend: "/" | append: "/" %}
|
||||||
{% if nav_url contains page.url %}
|
{% if nav_url == page.url %}
|
||||||
{% assign active = "active" %}
|
{% assign active = "active" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign active = "" %}
|
{% assign active = "" %}
|
||||||
{% endif %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -249,7 +249,7 @@
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
font-family: $sans-serif-narrow;
|
font-family: $sans-serif-narrow;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-bottom: 1px solid $border-color;
|
border-bottom: 1px solid $border-color;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue