move navbar items to yaml file
This commit is contained in:
parent
00ff630785
commit
85b267a33d
2 changed files with 15 additions and 5 deletions
12
src/_data/navigation.yaml
Normal file
12
src/_data/navigation.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
items:
|
||||
- text: about me
|
||||
url: "/about/"
|
||||
- text: contact
|
||||
url: "/contact/"
|
||||
- text: git
|
||||
url: "https://git.snug.moe/cheri"
|
||||
- text: rss
|
||||
url: "/feed.rss"
|
||||
- text: posts
|
||||
url: "/posts/"
|
|
@ -27,11 +27,9 @@
|
|||
</div>
|
||||
<div class="nav-right">
|
||||
<ul>
|
||||
<li><a href="/about/">about me</a></li>
|
||||
<li><a href="/contact/">contact</a></li>
|
||||
<li><a href="https://git.snug.moe/cheri">git</a></li>
|
||||
<li><a href="/feed.rss">rss</a></li>
|
||||
<li><a href="/posts/">posts</a></li>
|
||||
{% for item in navigation.items %}
|
||||
<li><a href="{{item.url}}">{{item.text}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue