summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2023-08-15 18:00:09 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2023-08-15 18:00:09 +0100
commit8b009f0ea6ea9d181ba8d0e6549c25645aa697c4 (patch)
treede2230462370cf3daad38b7e2692763b949bac20 /src/pages
parentabbacb6f7d6b4d93760f8f84ac5c9ec5857fad08 (diff)
NewsPreviewLink finds out its own locale
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/[locale]/news/index.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/[locale]/news/index.astro b/src/pages/[locale]/news/index.astro
index 42a17e2..0c81fd9 100644
--- a/src/pages/[locale]/news/index.astro
+++ b/src/pages/[locale]/news/index.astro
@@ -29,7 +29,7 @@ export async function getStaticPaths() {
<div class="news-index">
{
allNewsInLocale.length > 0 ? (
- allNewsInLocale.map((item) => <NewsPreviewLink locale={locale} newsItem={item} />)
+ allNewsInLocale.map((item) => <NewsPreviewLink newsItem={item} />)
) : (
<p>{t(tPage, { key: 'no-news' })}</p>
)