From fae289c3e6a7cf1c6d11ef7792b1c4445448c7ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 4 Nov 2023 01:12:48 +0100 Subject: [PATCH] theme: deprecation warning for menuTitle frontmatter #714 --- layouts/partials/header.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 75dcb57706..58da2633c6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -23,6 +23,9 @@ {{- if and $title .Site.Title (not (eq $title .Site.Title)) }} {{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }} {{- end }} + {{- if .Params.menuTitle }} + {{- warnf "%q: DEPRECATED frontmatter 'menutitle' found, use 'linktitle' instead" $page.File.Filename }} + {{- end }} {{ $title }} {{- if .IsTranslated -}}