diff options
author | Rohan Verma <hello@rohanverma.net> | 2020-05-20 09:52:02 +0300 |
---|---|---|
committer | Rohan Verma <hello@rohanverma.net> | 2020-05-20 09:52:02 +0300 |
commit | ef955a9442315126fe79d34ef5faf1a8b4e6f836 (patch) | |
tree | 94135991d3d1262972da29c8c717a9862bd87d3d | |
parent | f6fe816774fb145b1288cdc5c88b91501ad32876 (diff) |
fix: use menu_main instead of menu_main_left
This is a fix for example theme in hugo
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | layouts/partials/menu.html | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -50,7 +50,7 @@ googleAnalytics = "xxxx" commentoSrc = "https://commento.myselfhostedinstance.net/js/commento.js" footerMessage = "Feel free to use the content of this website with approripate attribution to the author." -[[menu.main_left]] +[[menu.main]] name = "home" url = "/" weight = 1 diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 6168efd..a1d16ed 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,6 +1,6 @@ <div id="menu"> {{ $currentPage := . }} - {{ range .Site.Menus.main_left }} + {{ range .Site.Menus.main }} {{if eq $currentPage.Params.url .URL }}<b>{{end}} <a href="{{ .URL }}">{{ .Name }}</a> {{if eq $currentPage.Params.url .URL }}</b>{{end}} |