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