hugo-theme-relearn/layouts/partials/relLangPrettyUglyURL.hugo
2022-11-11 13:44:23 +01:00

6 lines
No EOL
207 B
Text

{{- $to := .to }}
{{- $link := $to.RelPermalink }}
{{- if and (ne .Site.Params.disableExplicitIndexURLs true) (eq (substr $link -1) "/") }}
{{- $link = printf "%sindex.html" $link }}
{{- end }}
{{- $link }}