Skip to content

Commit

Permalink
fix: add margin to content bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Mar 29, 2024
1 parent 1d06ed2 commit 7f22dc1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pages/blog/index.astro
Original file line number Diff line number Diff line change
@@ -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());
Expand All @@ -23,7 +23,7 @@ posts.forEach((post) => {
---

<BaseLayout title={SITE_TITLE} description={SITE_DESCRIPTION}>
<div class="mx-auto prose prose-cyan">
<div class="mx-auto prose prose-cyan mb-8">
<ul class="slide-enter-content">
{
Object.entries(yearPosts).map(([key, posts]) => (
Expand All @@ -45,7 +45,7 @@ posts.forEach((post) => {
<a href={`/blog/${post.slug}/`}>{post.data.title}</a>
<div class="flex gap-2 items-center">
<FormattedDate date={post.data.pubDate} />
{`· ${getReadingTime(post.body).text.replace(' read', '')}`}
{`· ${getReadingTime(post.body).text.replace(" read", "")}`}
</div>
</li>
</div>
Expand Down

0 comments on commit 7f22dc1

Please sign in to comment.