diff options
| author | Kyren223 <contact@kyren.codes> | 2026-10-06 20:46:31 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2026-10-06 20:46:31 +0300 |
| commit | ba1be9573ef20d6424ae987257a1c727c47d4b53 (patch) | |
| tree | e59ef56f19142215070d0516a9b3a110d15557b6 /src/pages/blogs.astro | |
| parent | ea056b6e080669ba4b6f16c2757b4e2e88ea0553 (diff) | |
Initial setup for website rewrite
Diffstat (limited to 'src/pages/blogs.astro')
| -rw-r--r-- | src/pages/blogs.astro | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/pages/blogs.astro b/src/pages/blogs.astro deleted file mode 100644 index 7e1b576..0000000 --- a/src/pages/blogs.astro +++ /dev/null @@ -1,38 +0,0 @@ ---- -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, - })); ---- - -<Terminal path="/home/kyren/blogs/"> - <TerminalBorder - header="Shell" - extra="mb-[5vw] sm:mt-[0.625vw] sm:mb-[1.5625vw]" - > - <p>$ ls -lah -t --color=auto ~/blogs</p> - </TerminalBorder> - <div class="max-h-[80svh] sm:max-h-[24vw] overflow-y-auto"> - { - blogs.map((blog) => ( - <> - <BlogItem - title={blog.title} - description={blog.description ?? ""} - date={blog.date} - href={blog.href} - /> - </> - )) - } - </div> -</Terminal> |
