log101-dot-dev/layouts/partials/menu.html

17 lines
500 B
HTML

{{- range .Site.Menus.main }}
{{- if .HasChildren }}
<a href="{{ .URL | absLangURL }}" class="has-children">{{ or (T .Identifier) .Name | safeHTML }}</a>
<span class="sub-menu">
{{- range .Children }}
<a href="{{ .URL | absLangURL }}">{{ or (T .Identifier) .Name |
safeHTML }}</a>
{{- end }}
</span>
{{- else }}
<a {{ with .Params -}} class="{{ .class }}" id="{{ .id }}" {{ end -}} href="{{ .URL | absLangURL }}">{{ or (T
.Identifier) .Name |
safeHTML }}</a>
{{ .Post }}
{{- end }}
{{- end }}