From d1f73304f61ba8062721a7fcb0621e80280e85d2 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 15 Nov 2024 16:56:41 +0200 Subject: Some minor tweaks and updated ssh stuff to the actual values instead of placeholders --- src/components/BlogItem.astro | 12 +------ src/content/blogs/_my-webdev-experience.md | 8 +++++ src/content/blogs/_test.md | 37 +++++++++++++++++++ ...dev-experience-longer-poooooo-way-longer-yee.md | 8 ----- src/content/blogs/test.md | 41 ---------------------- .../blogs/the-search-for-the-perfect-ssh-key.mdx | 2 +- src/pages/index.astro | 18 +++++----- 7 files changed, 56 insertions(+), 70 deletions(-) create mode 100644 src/content/blogs/_my-webdev-experience.md create mode 100644 src/content/blogs/_test.md delete mode 100644 src/content/blogs/my-webdev-experience-longer-poooooo-way-longer-yee.md delete mode 100644 src/content/blogs/test.md diff --git a/src/components/BlogItem.astro b/src/components/BlogItem.astro index 08b98c4..7af463e 100644 --- a/src/components/BlogItem.astro +++ b/src/components/BlogItem.astro @@ -5,17 +5,7 @@ function formatDate(date: Date) { const day = date.getDate(); const month = date.toLocaleString("default", { month: "long" }); const year = date.getFullYear(); - - let suffix = "th"; - if (day === 1 || day === 21 || day === 31) { - suffix = "st"; - } else if (day === 2 || day === 22) { - suffix = "nd"; - } else if (day === 3 || day === 23) { - suffix = "rd"; - } - - return `${month} ${day}${suffix} ${year}`; + return `${month} ${day}, ${year}`; } interface Props { diff --git a/src/content/blogs/_my-webdev-experience.md b/src/content/blogs/_my-webdev-experience.md new file mode 100644 index 0000000..6949572 --- /dev/null +++ b/src/content/blogs/_my-webdev-experience.md @@ -0,0 +1,8 @@ +--- +title: My webdev experience +description: I made a website, here are my thoughts on web development +date: 2024-12-13 +--- + +Lorem ipsum dolor sit + diff --git a/src/content/blogs/_test.md b/src/content/blogs/_test.md new file mode 100644 index 0000000..344a479 --- /dev/null +++ b/src/content/blogs/_test.md @@ -0,0 +1,37 @@ +--- +title: Test +description: This is a test blog to... well.. test things! +date: 1970-01-01 +--- + +## Secondary + +Testing some content with multiline thing +let's see what happens if this wraps +This should be super close + +This should be far + +- Some bullets +- Adka kda kd ak +- d kakd akd ka k + +## Smaller header + +How about code blocks + +```go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} +``` + +Hmm + +> Does this blockquote work + +This is `highlighting` I think is what it's called diff --git a/src/content/blogs/my-webdev-experience-longer-poooooo-way-longer-yee.md b/src/content/blogs/my-webdev-experience-longer-poooooo-way-longer-yee.md deleted file mode 100644 index 6949572..0000000 --- a/src/content/blogs/my-webdev-experience-longer-poooooo-way-longer-yee.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: My webdev experience -description: I made a website, here are my thoughts on web development -date: 2024-12-13 ---- - -Lorem ipsum dolor sit - diff --git a/src/content/blogs/test.md b/src/content/blogs/test.md deleted file mode 100644 index 21304c2..0000000 --- a/src/content/blogs/test.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Test -description: This is a test blog to... well.. test things! -date: 1970-01-01 ---- -# My Title - -## Secondary - -Testing some content with multiline thing -let's see what happens if this wraps -This should be super close - -This should be far - -- Some bullets -- Adka kda kd ak -- d kakd akd ka k - -- [ ] Check me -- [x] Already checked - -## Smaller header - -How about code blocks - -```go example.go -package main - -import "fmt" - -func main() { - fmt.Println("Hello, World!") -} -``` - -Hmm - -> Does this work - -This is `highlighting` I think is what it's called diff --git a/src/content/blogs/the-search-for-the-perfect-ssh-key.mdx b/src/content/blogs/the-search-for-the-perfect-ssh-key.mdx index 215a411..09cc13c 100644 --- a/src/content/blogs/the-search-for-the-perfect-ssh-key.mdx +++ b/src/content/blogs/the-search-for-the-perfect-ssh-key.mdx @@ -22,7 +22,7 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSSj+yfJLWEb+Df4r4603TOFAUBREYS43qQB+c9i9UW ``` It consists of 2 parts, the algorithm, in this case it's -`ssh-ed25519`, other common algorithms are `ssh-rsa` and `ssh-ecdsa`. +`ssh-ed25519`, but it can be other ones too such as `ssh-rsa`. The second part is a base64 encoded custom binary format. Let's break it down diff --git a/src/pages/index.astro b/src/pages/index.astro index 872b360..987e347 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -13,15 +13,15 @@ const latestBlog = (await getCollection("blogs")).reduce((latest, blog) => { const sshKey = `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren`; const fingerprint = ` +--[ED25519 256]--+ -|+o.+oE*B%* o | -|o=...+++=.+ + | -|o B . o. . o + | -|.+ + o . = | -|. + . S o + | -| . o . + | -|. . . | -|.. | -|. | +| +. .. +.B| +| + o..o . BB| +| ..o oo.o =+E| +| ... oo. + o.| +| . S . = | +| . . + o | +| o o o . | +| oo .o+ + | +| ++ooo+= | +----[SHA256]-----+`.trimStart(); const aboutMe = ` -- cgit v1.3.1