mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-10 03:18:28 +08:00
theme: disableExplicitIndexURLs param is not working as expected #505
This commit is contained in:
parent
1ecc9ea900
commit
df5d6f3e80
@ -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 }}
|
Loading…
x
Reference in New Issue
Block a user