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 }}
|
{{- end }}
|
||||||
{{- safeHTML .Params.head }}
|
{{- safeHTML .Params.head }}
|
||||||
{{- if $numberOfVisibleChildren }}
|
{{- if $numberOfVisibleChildren }}
|
||||||
{{- $title := or .Params.menuTitle .LinkTitle .Title }}
|
{{- $title := or .LinkTitle .Title }}
|
||||||
{{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
|
{{- $url := partial "relLangPrettyUglyURL.hugo" (dict "to" .) }}
|
||||||
{{- $isCollapsible := or (.Params.collapsibleMenu | default .Site.Params.collapsibleMenu) (not $url) }}
|
{{- $isCollapsible := or (.Params.collapsibleMenu | default .Site.Params.collapsibleMenu) (not $url) }}
|
||||||
{{- $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}
|
{{- $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
{{- $title := "" }}
|
{{- $title := "" }}
|
||||||
{{- with .page }}
|
{{- with .page }}
|
||||||
{{- if .Params.menuTitle }}
|
{{- 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 }}
|
{{- end }}
|
||||||
{{- $format := $.format | default (partial "get-format.hugo" .) }}
|
{{- $format := $.format | default (partial "get-format.hugo" .) }}
|
||||||
{{- $outputFormat := $.outputFormat | default (partial "output-format.hugo" (dict "page" . "format" $format)) }}
|
{{- $outputFormat := $.outputFormat | default (partial "output-format.hugo" (dict "page" . "format" $format)) }}
|
||||||
{{- $title = .Title }}
|
{{- $title = .Title }}
|
||||||
{{- if $.linkTitle }}
|
{{- if $.linkTitle }}
|
||||||
{{- $title = or $.page.Params.menuTitle $.page.LinkTitle $title }}
|
{{- $title = or $.page.LinkTitle $title }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if eq $outputFormat "searchpage" }}
|
{{- if eq $outputFormat "searchpage" }}
|
||||||
|
|
Loading…
Reference in a new issue