mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: disableExplicitIndexURLs param is not working as expected #505
This commit is contained in:
parent
1ecc9ea900
commit
df5d6f3e80
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue