From df5d6f3e8077497cb1fa8ef5b5f30d3274999f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 24 Mar 2023 18:47:52 +0100 Subject: [PATCH] theme: disableExplicitIndexURLs param is not working as expected #505 --- layouts/partials/relLangPrettyUglyURL.hugo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/relLangPrettyUglyURL.hugo b/layouts/partials/relLangPrettyUglyURL.hugo index c0ab2a6b41..6d797b1b63 100644 --- a/layouts/partials/relLangPrettyUglyURL.hugo +++ b/layouts/partials/relLangPrettyUglyURL.hugo @@ -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 }} \ No newline at end of file