From 7f22dc19e2c61b58490bdf6a96653d485f79c82a Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Fri, 29 Mar 2024 15:29:23 +0800 Subject: [PATCH] fix: add margin to content bottom --- src/pages/blog/index.astro | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 3f7ca1e..cf1d5cf 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -1,12 +1,12 @@ --- -import { getCollection } from 'astro:content'; -import getReadingTime from 'reading-time'; -import FormattedDate from '../../components/FormattedDate.astro'; -import { SITE_DESCRIPTION, SITE_TITLE } from '../../consts'; -import BaseLayout from '../../layouts/BaseLayout.astro'; +import { getCollection } from "astro:content"; +import getReadingTime from "reading-time"; +import FormattedDate from "../../components/FormattedDate.astro"; +import { SITE_DESCRIPTION, SITE_TITLE } from "../../consts"; +import BaseLayout from "../../layouts/BaseLayout.astro"; const posts = ( - await getCollection('blog', ({ data }) => { + await getCollection("blog", ({ data }) => { return data.hidden !== true; }) ).sort((a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()); @@ -23,7 +23,7 @@ posts.forEach((post) => { --- -
+
    { Object.entries(yearPosts).map(([key, posts]) => ( @@ -45,7 +45,7 @@ posts.forEach((post) => { {post.data.title}
    - {`· ${getReadingTime(post.body).text.replace(' read', '')}`} + {`· ${getReadingTime(post.body).text.replace(" read", "")}`}