theme: disableExplicitIndexURLs param is not working as expected #505

This commit is contained in:
Sören Weber 2023-03-24 18:47:52 +01:00
parent 1ecc9ea900
commit df5d6f3e80
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -12,7 +12,7 @@
{{- if not $basename }}
{{- $basename = "index" }}
{{- end }}
{{- if and (ne .Site.Params.disableExplicitIndexURLs true) (eq (substr $link -1) "/") }}
{{- if and (ne site.Params.disableExplicitIndexURLs true) (eq (substr $link -1) "/") }}
{{- $link = printf "%s%s.html" $link $basename }}
{{- end }}
{{- $link }}