Generate navigation from config
This commit is contained in:
parent
21f1f15e42
commit
b3a77181ef
@ -5,3 +5,10 @@ build_search_index = false
|
||||
|
||||
[markdown]
|
||||
highlight_code = false
|
||||
|
||||
[extra]
|
||||
nav = [
|
||||
{title = "Index", path = "/"},
|
||||
{title = "About", path = "/about/"},
|
||||
{title = "All posts", path = "/posts/"}
|
||||
]
|
||||
|
@ -11,9 +11,9 @@
|
||||
</header>
|
||||
<aside>
|
||||
<ul>
|
||||
<li><a href="">anchor</a></li>
|
||||
<li><a href="">anchor</a></li>
|
||||
<li><a href="">anchor</a></li>
|
||||
{% for item in config.extra.nav %}
|
||||
<li><a href="{{ item.path }}">{{ item.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<span class="title">Title</span>
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user