🐮 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_css = ["/css/custom.css"]
# custom_js = ["/js/custom.js"] # custom_js = ["/js/custom.js"]
[[params.nav]] [[menu.main]]
name = "Blog" name = "Blog"
url = "/blog/" url = "/blog/"
[[params.nav]] [[menu.main]]
name = "Twitter" name = "Twitter"
url = "https://twitter.com/username" url = "https://twitter.com/username"
[[params.nav]] [[menu.main]]
name = "GitHub" name = "GitHub"
url = "https://github.com/username" url = "https://github.com/username"
[[params.nav]] [[menu.main]]
name = "Email" name = "Email"
url = "mailto:username@example.com" url = "mailto:username@example.com"

View file

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