From 41cc729f3ae5e24074f52bf39810f04eccc80e7c Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 26 Nov 2023 17:12:38 -0600 Subject: [PATCH] Fix unused imports, fix weird compiler parser breaking on commented JS comments --- src/layouts/Base.astro | 35 +++++++++++++++++---------------- src/pages/index.astro | 4 ++-- src/pages/posts/[...slug].astro | 2 +- 3 files changed, 21 insertions(+), 20 deletions(-) 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');