From b84fa25930e5e0d870470a0615106f389e3a1d1a Mon Sep 17 00:00:00 2001 From: Simon Hyll Date: Tue, 14 May 2024 02:15:23 +0200 Subject: [PATCH] fix: prettier blog --- astro.config.mjs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 466c0f278b3..3db299afe17 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -187,7 +187,17 @@ export default defineConfig({ { label: 'Blog', collapsed: true, - autogenerate: { directory: 'blog' }, + items: [ + { + label: 'All posts', + link: '/blog/' + }, + { + label: 'Recent posts', + collapsed: false, + autogenerate: { directory: 'blog' }, // TODO: Manually construct `items` to sort by dates + }, + ] }, ], locales,