mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-16 06:13:46 -06:00
Fix unused imports, fix weird compiler parser breaking on commented JS comments
This commit is contained in:
@@ -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());
|
||||
---
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user