diff options
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/menu-hugo.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/docs/menu-hugo.html b/layouts/partials/docs/menu-hugo.html index e21e8cb..02391ae 100644 --- a/layouts/partials/docs/menu-hugo.html +++ b/layouts/partials/docs/menu-hugo.html @@ -3,6 +3,10 @@ https://gohugo.io/variables/menus/ --> {{ if . }} + {{ template "book-menu-hugo" . }} +{{ end }} + +{{ define "book-menu-hugo" }} <ul> {{ range . }} <li> @@ -15,6 +19,9 @@ {{ end }} {{- .Post -}} </a> + {{- with .Children }} + {{ template "book-menu-hugo" . }} + {{- end }} </li> {{ end }} </ul> |