From 6d3da9537200e4029d3c9e1b6140f601642f26da Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 12 Nov 2024 22:33:11 +0200 Subject: Backup --- src/pages/blogs/index.astro | 39 +++++++++++ src/pages/index.astro | 165 +++++++++++++++++++++----------------------- 2 files changed, 119 insertions(+), 85 deletions(-) create mode 100644 src/pages/blogs/index.astro (limited to 'src/pages') diff --git a/src/pages/blogs/index.astro b/src/pages/blogs/index.astro new file mode 100644 index 0000000..de5252a --- /dev/null +++ b/src/pages/blogs/index.astro @@ -0,0 +1,39 @@ +--- +import Layout from "../../layouts/Layout.astro"; +import TerminalBorder from "../../components/TerminalBorder.astro"; +import BlogItem from "../../components/BlogItem.astro"; +import { getCollection } from "astro:content"; + +const blogEntries = await getCollection("blogs"); + +const blogs = [ + { + title: "The search for the perfect ed25519 key pair", + description: ` +This is the description about this thing which shoud be very +long and cause this to wrap so that I can see how about 3 lines +of paragraph will look int this so now I am gonna continue +yapping to make it even longer`.trimStart(), + date: "November 12th 2024", + }, +]; +--- + + + +

ls ~/blogs {blogs.length}

+
+
+ { + blogs.map((blog) => ( + <> + + + )) + } +
+
diff --git a/src/pages/index.astro b/src/pages/index.astro index 2a47693..d6cff92 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,8 +1,7 @@ --- -import Layout from "../layouts/Layout.astro"; +import Terminal from "../layouts/Layout.astro"; import TerminalBorder from "../components/TerminalBorder.astro"; import Link from "../components/Link.astro"; -import Nav from "../components/Nav.astro"; const sshKey = `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsrdN6e4XbkJfV/FbH3GY8ujWgxSCSbYiwzQ4rKyren`; const fingerprint = ` @@ -26,97 +25,93 @@ And when I am not coding I am most likely playing video games, watching Anime or solving Rubik's cubes fast.`.trimStart(); --- - -
-
-
+ + +