aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/menu-hugo.html
blob: e21e8cbc2f7dc715e64933974e34fd0791c751ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 }}