mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +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 }}
|