mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +00:00
theme: deprecation warning for menuTitle frontmatter #714
This commit is contained in:
parent
7d676d80d4
commit
fae289c3e6
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@
|
||||||
{{- if and $title .Site.Title (not (eq $title .Site.Title)) }}
|
{{- if and $title .Site.Title (not (eq $title .Site.Title)) }}
|
||||||
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }}
|
{{- $title = printf "%s %s %s" $title (default "::" .Site.Params.titleSeparator) .Site.Title }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Params.menuTitle }}
|
||||||
|
{{- warnf "%q: DEPRECATED frontmatter 'menutitle' found, use 'linktitle' instead" $page.File.Filename }}
|
||||||
|
{{- end }}
|
||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
|
|
||||||
{{- if .IsTranslated -}}
|
{{- if .IsTranslated -}}
|
||||||
|
|
Loading…
Reference in a new issue