diff options
author | Vivek R <vividvilla@gmail.com> | 2019-04-19 22:15:43 +0300 |
---|---|---|
committer | Vivek R <vividvilla@gmail.com> | 2019-04-19 22:15:43 +0300 |
commit | dbd1ca021efb43f15b1c01f3584fce78bb069158 (patch) | |
tree | 2a465224974d88c4a73251da9f3d58e071cca3f5 | |
parent | b89ed755ef2aa9a7303301f480e3d1d459173506 (diff) |
fix: use hugo menu instead of custom params
-rw-r--r-- | layouts/partials/head.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a1055ad..242c9b2 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,7 +7,7 @@ <nav class="nav social"> <ul class="flat"> {{- range $index, $key := .Site.Params.Social -}} - <a href="{{ $key.link }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a> + <a href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a> {{- end -}} </ul> </nav> @@ -15,9 +15,9 @@ <nav class="nav"> <ul class="flat"> - {{ range $index, $key := .Site.Params.Nav }} + {{ range .Site.Menus.main }} <li> - <a href="{{ $key.link }}">{{ $key.name }}</a> + <a href="{{ .URL }}">{{ .Name }}</a> </li> {{ end }} </ul> |