mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-22 00:06:30 -05:00
🐮 Changed to use Hugo's menu system
This commit is contained in:
parent
5e7d82f192
commit
af2b170429
2 changed files with 6 additions and 6 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue