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

13 lines
456 B
HTML
Raw Normal View History

2023-12-04 03:43:34 +00:00
{{- range .Site.Menus.main }}
{{- if .HasChildren }}
<a href="{{ .URL | absLangURL }}" class="has-children">{{ or (T .Identifier) .Name | safeHTML }}</a>
2023-12-04 03:43:34 +00:00
<span class="sub-menu">
{{- range .Children }}
<a href="{{ .URL | absLangURL }}">{{ or (T .Identifier) .Name | safeHTML }}</a>
2023-12-04 03:43:34 +00:00
{{- end }}
</span>
{{- else }}
<a href="{{ .URL | absLangURL }}">{{ or (T .Identifier) .Name | safeHTML }}</a>
2023-12-04 03:43:34 +00:00
{{- end }}
{{- end }}