mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-04 21:23:07 +00:00
10 lines
218 B
Go Template
10 lines
218 B
Go Template
|
{{- $url := "" }}
|
||
|
{{- with . }}
|
||
|
{{- with .URL }}
|
||
|
{{- $url = . | relLangURL }}
|
||
|
{{- end }}
|
||
|
{{- with .Page }}
|
||
|
{{- $url = partial "permalink.gotmpl" (dict "to" .) }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- return $url }}
|