mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +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 }}
|
{{- if not $basename }}
|
||||||
{{- $basename = "index" }}
|
{{- $basename = "index" }}
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- $link = printf "%s%s.html" $link $basename }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $link }}
|
{{- $link }}
|
Loading…
Reference in a new issue