mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
logo: respect linkTitle of home page for tille generation #567
This commit is contained in:
parent
8e3156ce70
commit
659e7d1583
2 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
||||||
{{- warnf "%q: UNSUPPORTED front matter 'menutitle' found, use 'linktitle' instead; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/6/#6-0-0" $.File.Filename }}
|
{{- warnf "%q: UNSUPPORTED front matter 'menutitle' found, use 'linktitle' instead; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/6/#6-0-0" $.File.Filename }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $siteTitle := site.Title }}
|
{{- $siteTitle := site.Title }}
|
||||||
|
{{- if $.linkTitle }}
|
||||||
|
{{- $siteTitle := or site.Params.linkTitle site.Title }}
|
||||||
|
{{- end }}
|
||||||
{{- $title = .Title }}
|
{{- $title = .Title }}
|
||||||
{{- if $.linkTitle }}
|
{{- if $.linkTitle }}
|
||||||
{{- $title = or .LinkTitle $title }}
|
{{- $title = or .LinkTitle $title }}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
6.4.0+598e067f6da8347450c253d530efbbc24f0b5fce
|
6.4.0+c092b94fd80ed72dedbe7726881b98027cf76621
|
Loading…
Reference in a new issue