theme: deprecation warning for menuTitle frontmatter #714

This commit is contained in:
Sören Weber 2023-11-04 01:12:48 +01:00
parent 7d676d80d4
commit fae289c3e6
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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>{{ $title }}</title>
{{- if .IsTranslated -}}