mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: remove menuTitle option #714
This commit is contained in:
parent
ca0db4d815
commit
26724fba2c
2 changed files with 3 additions and 3 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue