logo: respect linkTitle of home page for tille generation #567

This commit is contained in:
Sören Weber 2024-10-10 08:56:33 +02:00
parent 8e3156ce70
commit 659e7d1583
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 4 additions and 1 deletions

View file

@ -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 }}
{{- end }}
{{- $siteTitle := site.Title }}
{{- if $.linkTitle }}
{{- $siteTitle := or site.Params.linkTitle site.Title }}
{{- end }}
{{- $title = .Title }}
{{- if $.linkTitle }}
{{- $title = or .LinkTitle $title }}

View file

@ -1 +1 @@
6.4.0+598e067f6da8347450c253d530efbbc24f0b5fce
6.4.0+c092b94fd80ed72dedbe7726881b98027cf76621