mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 16:15:12 +00:00
1 parent
e363d9a1db
commit
9306b834ab
1 file changed
+2
-2
@@ -1,8 +1,8 @@
|
||||
{{ $current_page := . }}
|
||||
{{ $menu_name := .Section }}
|
||||
{{ $menu_name := (path.Base (path.Split .Path).Dir) }}
|
||||
{{ with (index .Site.Menus $menu_name) }}
|
||||
{{ else }}
|
||||
{{ errorf "Please define menu items named `[menu.%s]` in your %s front matter or in `config.toml`." $menu_name $menu_name }}
|
||||
{{ errorf "Please define menu items named `[menu.%s]` in your %s front matter or define `[[menu.%s]]` in `config.toml`." $menu_name .Path $menu_name }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq $.Site.Params.search.engine 1 }}
|
||||
|
||||
Reference in new issue
Block a user