mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
10 lines
No EOL
218 B
Go Template
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 }} |