From 5477a010dcc2864cb96fb94fbd545ac61c86a544 Mon Sep 17 00:00:00 2001 From: ezzabuzaid Date: Tue, 14 Nov 2023 23:23:53 +0300 Subject: [PATCH] highlight first visible section --- src/layouts/PostDetails.astro | 102 ++++++++++++++++++++++++++++++---- src/layouts/Posts.astro | 10 ---- 2 files changed, 91 insertions(+), 21 deletions(-) diff --git a/src/layouts/PostDetails.astro b/src/layouts/PostDetails.astro index 3c47d43..5076613 100644 --- a/src/layouts/PostDetails.astro +++ b/src/layouts/PostDetails.astro @@ -45,7 +45,7 @@ const devMode = import.meta.env.DEV; section: "Technology", }} > -
+
{tags.map(tag => )} +
+
+ + diff --git a/src/layouts/Posts.astro b/src/layouts/Posts.astro index c5f3a4f..999d140 100644 --- a/src/layouts/Posts.astro +++ b/src/layouts/Posts.astro @@ -23,13 +23,3 @@ const { posts } = Astro.props;
- -