From 48a85356d9a1d80573a7ed277b251e51f70c1822 Mon Sep 17 00:00:00 2001 From: Naoya Ozawa Date: Tue, 23 Jul 2019 18:25:38 +0900 Subject: [PATCH] [add] pull-down button for the events section without children #7 --- .../layouts/partials/main_menu.html | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/themes/cns_hp_theme/layouts/partials/main_menu.html b/themes/cns_hp_theme/layouts/partials/main_menu.html index d961db0..5f1bd01 100644 --- a/themes/cns_hp_theme/layouts/partials/main_menu.html +++ b/themes/cns_hp_theme/layouts/partials/main_menu.html @@ -19,21 +19,21 @@
{{ if eq .Identifier "lab" }} -
- {{ range .Children }} - {{ $nm := .Name }} - {{ $w := .Weight }} - {{ $pt := .URL | relLangURL }} - - {{ range $.Site.RegularPages }} - {{ if (.Param "mktile") }} - {{ if eq .Weight $w }} - {{
{{ $nm }}
+
+ {{ range .Children }} + {{ $nm := .Name }} + {{ $w := .Weight }} + {{ $pt := .URL | relLangURL }} + + {{ range $.Site.RegularPages }} + {{ if (.Param "mktile") }} + {{ if eq .Weight $w }} + {{
{{ $nm }}
+ {{ end }} {{ end }} {{ end }} {{ end }} - {{ end }} -
+
@@ -55,7 +55,19 @@ {{ end }}
{{ else }} - + + + + {{ if eq .URL "/events" }} + +
+

This is where the upcoming events will be listed.

+
+ + {{ else }} + + {{ end }} + {{ end }} {{ end }} -- GitLab