Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rhnvrm/bodhi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohan Verma <hello@rohanverma.net>2020-05-20 09:52:02 +0300
committerRohan Verma <hello@rohanverma.net>2020-05-20 09:52:02 +0300
commitef955a9442315126fe79d34ef5faf1a8b4e6f836 (patch)
tree94135991d3d1262972da29c8c717a9862bd87d3d
parentf6fe816774fb145b1288cdc5c88b91501ad32876 (diff)
fix: use menu_main instead of menu_main_left
This is a fix for example theme in hugo
-rw-r--r--README.md2
-rw-r--r--layouts/partials/menu.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 54a9b9f..cf469a3 100644
--- a/README.md
+++ b/README.md
@@ -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}}