theme: don't use menuTitle anymore #714

This commit is contained in:
Sören Weber 2024-04-26 21:53:26 +02:00
parent f9dc695a57
commit e8a0d000c3
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -159,7 +159,7 @@
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" $defaultAlwaysopen }} {{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" $defaultAlwaysopen }}
{{- end }}</ul></li> {{- end }}</ul></li>
{{- else }} {{- else }}
{{- $title := or .Params.menuTitle .LinkTitle .Title }} {{- $title := or .LinkTitle .Title }}
{{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" .) }} {{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
<li data-nav-id="{{ $url }}" class="{{if $isActive }}active{{end}}">{{ if $url }}<a class="padding" href="{{ $url }}">{{ else }}<span class="padding">{{ end }} <li data-nav-id="{{ $url }}" class="{{if $isActive }}active{{end}}">{{ if $url }}<a class="padding" href="{{ $url }}">{{ else }}<span class="padding">{{ end }}
{{- partial "menu-pre.html" . }}{{ $title }}{{ partial "menu-post.html" . }} {{- partial "menu-pre.html" . }}{{ $title }}{{ partial "menu-post.html" . }}