diff options
Diffstat (limited to 'layouts/partials/docs/menu-hugo.html')
-rw-r--r-- | layouts/partials/docs/menu-hugo.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/partials/docs/menu-hugo.html b/layouts/partials/docs/menu-hugo.html new file mode 100644 index 0000000..e21e8cb --- /dev/null +++ b/layouts/partials/docs/menu-hugo.html @@ -0,0 +1,21 @@ +<!-- + This is template for hugo menus, accepts MenuEntity as context + https://gohugo.io/variables/menus/ +--> +{{ if . }} +<ul> + {{ range . }} + <li> + <a href="{{ .URL }}" {{ if not .Page }}target="_blank" rel="noopener"{{ end }}> + {{- .Pre -}} + {{ with .Page }} + {{ partial "docs/title" .Page }} + {{ else }} + {{ .Name }} + {{ end }} + {{- .Post -}} + </a> + </li> + {{ end }} +</ul> +{{ end }} |