changed the name of the navbar item for home
This commit is contained in:
parent
7eda3e8c51
commit
918dcc7e01
@ -1,6 +1,6 @@
|
|||||||
list:
|
list:
|
||||||
- title: "~"
|
- title: "~"
|
||||||
url: /
|
url: /index.html
|
||||||
- title: ~/blog
|
- title: ~/blog
|
||||||
url: /blog/
|
url: /blog/
|
||||||
- title: ~/doc/about
|
- title: ~/doc/about
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<nav>
|
<nav>
|
||||||
{% for item in site.data.nav.list %}
|
{% for item in site.data.nav.list %}
|
||||||
<a href="{{site.baseurl}}{{item.url}}"{% if item.url == page.url %} class="a-active" {% endif %}>{{item.title}}</a>
|
<a href="{{site.baseurl}}{{item.url}}"{% if page.url contains item.url %} class="a-active" {% endif %}>{{item.title}}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user