From ba1be9573ef20d6424ae987257a1c727c47d4b53 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 6 Oct 2026 20:46:31 +0300 Subject: Initial setup for website rewrite --- old_stuff/src/pages/blogs.astro | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 old_stuff/src/pages/blogs.astro (limited to 'old_stuff/src/pages/blogs.astro') diff --git a/old_stuff/src/pages/blogs.astro b/old_stuff/src/pages/blogs.astro new file mode 100644 index 0000000..7e1b576 --- /dev/null +++ b/old_stuff/src/pages/blogs.astro @@ -0,0 +1,38 @@ +--- +import Terminal from "@layouts/Terminal.astro"; +import TerminalBorder from "@components/TerminalBorder.astro"; +import BlogItem from "@components/BlogItem.astro"; +import { getCollection } from "astro:content"; + +const blogs = (await getCollection("blogs")) + .sort((a, b) => +new Date(b.data.date) - +new Date(a.data.date)) + .map((blog) => ({ + title: blog.data.title, + description: blog.data.description, + date: blog.data.date, + href: "/blogs/" + blog.slug, + })); +--- + + + +

$ ls -lah -t --color=auto ~/blogs

+
+
+ { + blogs.map((blog) => ( + <> + + + )) + } +
+
-- cgit v1.3.1