changed the name of the navbar item for home

This commit is contained in:
neko 2021-04-13 20:00:39 +02:00
parent 7eda3e8c51
commit 918dcc7e01
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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>