diff --git a/WebsiteGenerator/Content/Element+LocalizedMetadata.swift b/WebsiteGenerator/Content/Element+LocalizedMetadata.swift index 5cbd2dc..2781921 100644 --- a/WebsiteGenerator/Content/Element+LocalizedMetadata.swift +++ b/WebsiteGenerator/Content/Element+LocalizedMetadata.swift @@ -143,7 +143,7 @@ extension Element.LocalizedMetadata { self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? "" self.linkPreviewImage = log .linkPreviewThumbnail(customFile: data.linkPreviewImage, for: language, in: folder, source: source) - let linkPreviewDescription = data.linkPreviewDescription ?? data.subtitle ?? data.description + let linkPreviewDescription = data.linkPreviewDescription ?? data.description ?? data.subtitle self.linkPreviewDescription = log .required(linkPreviewDescription, name: "linkPreviewDescription", source: source) .ifNil(markAsIncomplete) ?? "" @@ -184,7 +184,7 @@ extension Element.LocalizedMetadata { self.linkPreviewTitle = data.linkPreviewTitle ?? data.title ?? "" self.linkPreviewImage = log .linkPreviewThumbnail(customFile: data.linkPreviewImage, for: language, in: folder, source: source) - let linkPreviewDescription = data.linkPreviewDescription ?? data.subtitle ?? data.description + let linkPreviewDescription = data.linkPreviewDescription ?? data.description ?? data.subtitle self.linkPreviewDescription = log .required(linkPreviewDescription, name: "linkPreviewDescription", source: source) .ifNil(markAsIncomplete) ?? ""