hugoWebsite/layouts/partials/menu-url.html

14 lines
290 B
HTML

{{- if eq .lang "en" -}}
{{- with .menu.Params.url_en -}}
{{- relURL . -}}
{{- else -}}
{{- .menu.URL | absLangURL -}}
{{- end -}}
{{- else -}}
{{- with .menu.Params.url_de -}}
{{- relURL . -}}
{{- else -}}
{{- .menu.URL | absLangURL -}}
{{- end -}}
{{- end -}}