diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 217232d..b25f6bb 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -85,22 +85,23 @@ const titleTag = title != undefined ? `${title} | xevion.blog` : 'xevion.blog';

- - - - - - - - - - - - - - - - - + diff --git a/src/pages/index.astro b/src/pages/index.astro index 61d47c6..6aec324 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,8 +1,8 @@ --- -import { getCollection, getEntry } from "astro:content"; +import { getCollection } from "astro:content"; import Base from "@layouts/Base.astro"; import Summary from "@components/Summary.astro"; -const posts = await getCollection("blog"); +const posts = await getCollection("blog"); posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDate).getTime()); --- diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 818f4a9..4a8483c 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -1,6 +1,6 @@ --- import Post from '@layouts/Post.astro'; -import { getCollection, type CollectionEntry } from 'astro:content'; +import { getCollection } from 'astro:content'; export async function getStaticPaths() { const blogEntries = await getCollection('blog');