hugoWebsite/layouts/partials/menu-url.html

14 lines
290 B
HTML
Raw Normal View History

2023-10-08 23:51:01 +02:00
{{- if eq .lang "en" -}}
2023-10-09 01:17:21 +02:00
{{- with .menu.Params.url_en -}}
2023-10-08 23:51:01 +02:00
{{- relURL . -}}
{{- else -}}
{{- .menu.URL | absLangURL -}}
{{- end -}}
{{- else -}}
2023-10-09 01:17:21 +02:00
{{- with .menu.Params.url_de -}}
2023-10-08 23:51:01 +02:00
{{- relURL . -}}
{{- else -}}
{{- .menu.URL | absLangURL -}}
{{- end -}}
{{- end -}}