mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 10:50:34 -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_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"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue