mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-03 12:43:05 +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 }} |