From ae8485296f5ca39b9b51b19d9e7c6b2b1cf7061f Mon Sep 17 00:00:00 2001 From: tree Date: Mon, 12 Feb 2024 15:33:30 +0100 Subject: [PATCH] simplify urls --- web/src/components/WeekNews.astro | 2 +- web/src/pages/{issue => }/[week].astro | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename web/src/pages/{issue => }/[week].astro (73%) diff --git a/web/src/components/WeekNews.astro b/web/src/components/WeekNews.astro index f827e7c..bcdb4e8 100644 --- a/web/src/components/WeekNews.astro +++ b/web/src/components/WeekNews.astro @@ -13,7 +13,7 @@ const current = false;
-

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

+

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

{format(issue.period[0], "MMM d")} - {format(issue.period[1], "MMM d, yyyy")}
{!issue.published &&
🚧 Future edition
diff --git a/web/src/pages/issue/[week].astro b/web/src/pages/[week].astro similarity index 73% rename from web/src/pages/issue/[week].astro rename to web/src/pages/[week].astro index 8a23a51..ec6e65d 100644 --- a/web/src/pages/issue/[week].astro +++ b/web/src/pages/[week].astro @@ -1,8 +1,8 @@ --- -import BaseLayout from '../../layouts/base.astro'; -import WeekNews from '../../components/WeekNews.astro'; -import issues from '../../issues.json'; -import config from '../../config.yaml'; +import BaseLayout from '../layouts/base.astro'; +import WeekNews from '../components/WeekNews.astro'; +import issues from '../issues.json'; +import config from '../config.yaml'; export function getStaticPaths() { return issues.map(issue => {