hugo-book-theme/layouts/partials/docs/menu-hugo.html

22 lines
435 B
HTML
Raw Normal View History

2020-02-12 22:12:41 +01:00
<!--
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 }}