Date: Fri, 27 Dec 2024 17:36:18 +0100
Subject: [PATCH 4/4] Pass description to the LinkToPost
---
src/components/LinkToPost.astro | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/components/LinkToPost.astro b/src/components/LinkToPost.astro
index 1c70269..4e7c81a 100644
--- a/src/components/LinkToPost.astro
+++ b/src/components/LinkToPost.astro
@@ -24,6 +24,15 @@ let description: string | undefined
if (includeDate) {
description = getCreatedDate(entry)
}
+
+if (entry.data.description) {
+ if (!description) {
+ description = entry.data.description
+ } else {
+ description = `${description}
${entry.data.description}
`
+ }
+}
+
---