hugo-theme-relearn/layouts/partials/menupermalink.gotmpl
2024-10-22 19:35:28 +02:00

10 lines
No EOL
218 B
Go Template

{{- $url := "" }}
{{- with . }}
{{- with .URL }}
{{- $url = . | relLangURL }}
{{- end }}
{{- with .Page }}
{{- $url = partial "permalink.gotmpl" (dict "to" .) }}
{{- end }}
{{- end }}
{{- return $url }}