2024-01-02 05:57:25 +00:00
|
|
|
{{- 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 }}
|