theme: remove menuTitle option #714

This commit is contained in:
Sören Weber 2024-04-19 00:09:51 +02:00
parent ca0db4d815
commit 26724fba2c
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@
{{- end }}
{{- safeHTML .Params.head }}
{{- if $numberOfVisibleChildren }}
{{- $title := or .Params.menuTitle .LinkTitle .Title }}
{{- $title := or .LinkTitle .Title }}
{{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
{{- $isCollapsible := or (.Params.collapsibleMenu | default .Site.Params.collapsibleMenu) (not $url) }}
{{- $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}

View file

@ -1,13 +1,13 @@
{{- $title := "" }}
{{- with .page }}
{{- if .Params.menuTitle }}
{{- warnf "%q: DEPRECATED frontmatter 'menutitle' found, use 'linktitle' instead" $.File.Filename }}
{{- warnf "%q: UNSUPPORTED frontmatter 'menutitle' found, use 'linktitle' instead" $.File.Filename }}
{{- end }}
{{- $format := $.format | default (partial "get-format.hugo" .) }}
{{- $outputFormat := $.outputFormat | default (partial "output-format.hugo" (dict "page" . "format" $format)) }}
{{- $title = .Title }}
{{- if $.linkTitle }}
{{- $title = or $.page.Params.menuTitle $.page.LinkTitle $title }}
{{- $title = or $.page.LinkTitle $title }}
{{- end }}
{{- if eq $outputFormat "searchpage" }}