mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
10 lines
No EOL
283 B
Text
10 lines
No EOL
283 B
Text
{{- $page := .page }}
|
|
{{- $to := .to }}
|
|
{{- $link := $to.RelPermalink }}
|
|
{{- if not .isTranslation }}
|
|
{{- $link = $link | relLangURL }}
|
|
{{- end }}
|
|
{{- if and .page.Site.Params.uglyURLs (eq (substr $link -1) "/") }}
|
|
{{- $link = printf "%sindex.html" $link }}
|
|
{{- end }}
|
|
{{- $link }} |