From 5e6523c9a2773ce0f744b873ec223162012b238a Mon Sep 17 00:00:00 2001 From: Naoya Ozawa Date: Fri, 9 Aug 2019 18:11:17 +0900 Subject: [PATCH] [mod] enabled child loop & print .Section #37 --- themes/cns_hp_theme/layouts/partials/main_menu.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/themes/cns_hp_theme/layouts/partials/main_menu.html b/themes/cns_hp_theme/layouts/partials/main_menu.html index f2f32a3..179056a 100644 --- a/themes/cns_hp_theme/layouts/partials/main_menu.html +++ b/themes/cns_hp_theme/layouts/partials/main_menu.html @@ -40,14 +40,15 @@ {{ $pmenu := .Identifier }} {{ range $.Site.RegularPages }} - {{ if eq (lower .Title) $pmenu }} -

{{ .Content }}

+

{{ .Section }}

+ {{ if eq .Section $pmenu }} +

{{ .Content }}

{{ end }} {{ end }} -- GitLab