From 26724fba2cb801285881ba3725b68ff2b0f6ab6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 19 Apr 2024 00:09:51 +0200 Subject: [PATCH] theme: remove menuTitle option #714 --- layouts/partials/menu.html | 2 +- layouts/partials/pageHelper/title.hugo | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 83b852b507..773dfab4d3 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -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 }} diff --git a/layouts/partials/pageHelper/title.hugo b/layouts/partials/pageHelper/title.hugo index 51e664492c..c09c323798 100644 --- a/layouts/partials/pageHelper/title.hugo +++ b/layouts/partials/pageHelper/title.hugo @@ -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" }}