From 40921a489269e84f6930eaab7df955c4afd5ce7f Mon Sep 17 00:00:00 2001
From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com>
Date: Fri, 25 Aug 2023 17:56:03 +0100
Subject: Adds an RSS feed with news items
---
src/components/NewsIndex/NewsPreviewLink.astro | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'src/components/NewsIndex')
diff --git a/src/components/NewsIndex/NewsPreviewLink.astro b/src/components/NewsIndex/NewsPreviewLink.astro
index aa8a371..d698a7a 100644
--- a/src/components/NewsIndex/NewsPreviewLink.astro
+++ b/src/components/NewsIndex/NewsPreviewLink.astro
@@ -2,6 +2,7 @@
import translate from '$i18n/translate';
import tComponent from '$i18n/translations/components/newsIndex';
import getLocaleFromPath from '$lib/getLocaleFromPath';
+import { getHref } from '$lib/newsUtils';
import type { CollectionEntry } from 'astro:content';
interface Props {
@@ -14,7 +15,7 @@ const locale = getLocaleFromPath(Astro.url.pathname);
const t = translate(locale);
---
-
+
${newsItem.data.title}${headingLevel}>
--
cgit v1.2.3