mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-24 01:09:46 +00:00
Modify nav_list and styling
This commit is contained in:
parent
9ea795ef95
commit
b04ede54ab
@ -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 %}
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user