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:
- title: "~"
url: /
url: /index.html
- title: ~/blog
url: /blog/
- title: ~/doc/about

View File

@ -1,5 +1,5 @@
<nav>
{% 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 %}
</nav>