From 659e7d1583cf16ce26d33ddb5e76a5b9f77c00eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 10 Oct 2024 08:56:33 +0200 Subject: [PATCH] logo: respect linkTitle of home page for tille generation #567 --- layouts/partials/title.gotmpl | 3 +++ layouts/partials/version.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/layouts/partials/title.gotmpl b/layouts/partials/title.gotmpl index 606b223285..27b340b7b0 100644 --- a/layouts/partials/title.gotmpl +++ b/layouts/partials/title.gotmpl @@ -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 }} diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index 667c1e9ec5..50435d26e1 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -6.4.0+598e067f6da8347450c253d530efbbc24f0b5fce \ No newline at end of file +6.4.0+c092b94fd80ed72dedbe7726881b98027cf76621 \ No newline at end of file