From a94a7fbc233bd7d5e53c07ff99392f54b69642d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 16 Feb 2024 22:30:01 +0100 Subject: [PATCH] theme: fix inconsistency between header and menu for basename --- layouts/partials/menu.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index ecc193d8d9..a2ccaf7cf1 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -3,7 +3,7 @@ {{- $format := partial "get-format.hugo" . }} {{- $outputFormat := partial "output-format.hugo" (dict "page" . "format" $format) }} {{- $basename := "index" }} - {{- if ne $outputFormat "html" }} + {{- if eq $outputFormat "searchpage" }} {{- $basename = partial "BaseName.hugo" $format.RelPermalink }} {{- end }}