summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/menu.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/shortcodes/menu.html b/layouts/shortcodes/menu.html
index 1b3dc54..356c675 100644
--- a/layouts/shortcodes/menu.html
+++ b/layouts/shortcodes/menu.html
@@ -8,6 +8,18 @@
<a href="{{ .URL }}">
{{ .Name }}
</a>
+
+ {{ if .HasChildren }}
+ <ul>
+ {{ range .Children }}
+ <li>
+ <a href="{{ .URL }}">
+ {{ .Name }}
+ </a>
+ {{ end }}
+ </ul>
+
+ {{ end }}
{{- end }}
</ol>
</nav>