🐮 Changed to use Hugo's menu system

This commit is contained in:
koirand 2018-09-24 23:55:24 +09:00
parent 5e7d82f192
commit af2b170429
2 changed files with 6 additions and 6 deletions

View file

@ -17,19 +17,19 @@ pygmentsUseClasses = true
# custom_css = ["/css/custom.css"]
# custom_js = ["/js/custom.js"]
[[params.nav]]
[[menu.main]]
name = "Blog"
url = "/blog/"
[[params.nav]]
[[menu.main]]
name = "Twitter"
url = "https://twitter.com/username"
[[params.nav]]
[[menu.main]]
name = "GitHub"
url = "https://github.com/username"
[[params.nav]]
[[menu.main]]
name = "Email"
url = "mailto:username@example.com"

View file

@ -14,8 +14,8 @@
</p>
<nav>
<ul>
{{ range .Site.Params.Nav }}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ range .Site.Menus.main }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</nav>