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