From a6472ba5a87d7b1a555d0fab2ca556f7be076b67 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 30 Aug 2022 11:28:55 +0200 Subject: [PATCH] Use title as backLink instead of parent text --- WebsiteGenerator/Content/Element+LocalizedMetadata.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebsiteGenerator/Content/Element+LocalizedMetadata.swift b/WebsiteGenerator/Content/Element+LocalizedMetadata.swift index 2781921..cbe5cd5 100644 --- a/WebsiteGenerator/Content/Element+LocalizedMetadata.swift +++ b/WebsiteGenerator/Content/Element+LocalizedMetadata.swift @@ -189,7 +189,7 @@ extension Element.LocalizedMetadata { .required(linkPreviewDescription, name: "linkPreviewDescription", source: source) .ifNil(markAsIncomplete) ?? "" self.moreLinkText = log.moreLinkText(data.moreLinkText, parent: parent.moreLinkText, source: source) - self.backLinkText = data.backLinkText ?? parent.backLinkText + self.backLinkText = data.backLinkText ?? data.title ?? "" self.parentBackLinkText = parent.backLinkText self.placeholderTitle = data.placeholderTitle ?? parent.placeholderTitle self.placeholderText = data.placeholderText ?? parent.placeholderText