diff options
author | Parvez <syedparvez72@gmail.com> | 2021-03-19 07:24:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 07:24:46 +0300 |
commit | b5813c90fb38e748731a82a9059868b08729d9f5 (patch) | |
tree | 804f4f080f5e2ea50e71ea2bcadbcd1bb606a769 | |
parent | e54496af94be3940dbee79b0c347287af61882f8 (diff) |
fixed compile issue **can't evaluate field Site in type navigation.Menu** (#97)
first block was using 'with' block changing the context to menu, pointing the range to current context fixed the issue
-rw-r--r-- | layouts/partials/main_menu.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/main_menu.html b/layouts/partials/main_menu.html index e485f8a..3258080 100644 --- a/layouts/partials/main_menu.html +++ b/layouts/partials/main_menu.html @@ -1,7 +1,7 @@ {{ with .Site.Menus.main }} <section id="main-menu-pane" class="text-center main-menu"> - {{ range sort .Site.Menus.main }} + {{ range sort . }} <h4><a class="menu-item" href="{{ .URL }}">{{ .Name | lower }}</a></h4> {{ end }} </section> -{{ end }} +{{ end }}
\ No newline at end of file |