From 0f92f9bd78d3ccb26e4ad1f94ec6ab20e1911cdd Mon Sep 17 00:00:00 2001 From: OYMiss Date: Mon, 3 Jun 2024 00:38:48 +0800 Subject: [PATCH] add news --- src/pages/index.astro | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 1bccba5..a570a47 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -77,6 +77,30 @@ const socialCount = SOCIALS.filter(social => social.active).length;
+ { +
+

News

+ +
+ } +
+ { featuredPosts.length > 0 && ( <> @@ -157,10 +181,12 @@ const socialCount = SOCIALS.filter(social => social.active).length; } /* ===== Featured & Recent Posts Sections ===== */ + #news, #featured, #recent-posts { - @apply pb-6 pt-12; + @apply pb-6 pt-6; } + #news h2, #featured h2, #recent-posts h2 { @apply text-2xl font-semibold tracking-wide;