From 4e550b869fa05025f5819de5da61404a8a57ed29 Mon Sep 17 00:00:00 2001 From: tree Date: Mon, 12 Feb 2024 12:20:45 +0100 Subject: [PATCH] update --- web/src/components/WeekNews.astro | 11 +++++++---- web/src/layouts/base.astro | 2 +- web/src/pages/index.astro | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/web/src/components/WeekNews.astro b/web/src/components/WeekNews.astro index 34ce358..c5ce699 100644 --- a/web/src/components/WeekNews.astro +++ b/web/src/components/WeekNews.astro @@ -8,9 +8,9 @@ const current = false; --- -
+
-
+

Week {issue.week.split('-').join('/')}

{format(issue.period[0], "MMM d")} - {format(issue.period[1], "MMM d, yyyy")}
@@ -19,8 +19,11 @@ const current = false; }
-
- Edit +
+ {issue.published && + Paragraph + } + {issue.published ? 'Source' : 'Edit'}
diff --git a/web/src/layouts/base.astro b/web/src/layouts/base.astro index 0e202a4..43b532b 100644 --- a/web/src/layouts/base.astro +++ b/web/src/layouts/base.astro @@ -18,7 +18,7 @@ import '../styles/base.css';

Week in the Privacy News

- diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index 7058f09..9399152 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -7,7 +7,7 @@ import issues from '../issues.json'; --- - {issues.map((issue) => ( + {issues.filter(i => i.newsHtml !== "").map((issue) => ( ))} \ No newline at end of file