theme: fix inconsistency between header and menu for basename

This commit is contained in:
Sören Weber 2024-02-16 22:30:01 +01:00
parent 288c6609d0
commit a94a7fbc23
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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 }}
<aside id="R-sidebar" class="default-animation{{ if $showvisitedlinks }} showVisitedLinks{{ end }}">