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", "")}`}