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-longer-poooooo-way-longer-yee.md b/src/content/blogs/_my-webdev-experience.md similarity index 100% rename from src/content/blogs/my-webdev-experience-longer-poooooo-way-longer-yee.md rename to src/content/blogs/_my-webdev-experience.md diff --git a/src/content/blogs/test.md b/src/content/blogs/_test.md similarity index 84% rename from src/content/blogs/test.md rename to src/content/blogs/_test.md index 21304c2..344a479 100644 --- a/src/content/blogs/test.md +++ b/src/content/blogs/_test.md @@ -3,7 +3,6 @@ title: Test description: This is a test blog to... well.. test things! date: 1970-01-01 --- -# My Title ## Secondary @@ -17,14 +16,11 @@ This should be far - Adka kda kd ak - d kakd akd ka k -- [ ] Check me -- [x] Already checked - ## Smaller header How about code blocks -```go example.go +```go package main import "fmt" @@ -36,6 +32,6 @@ func main() { Hmm -> Does this work +> Does this blockquote 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 = `