summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-15 16:56:41 +0200
committerKyren223 <Kyren223@proton.me>2024-11-15 16:56:41 +0200
commitd1f73304f61ba8062721a7fcb0621e80280e85d2 (patch)
treeace1ff3896cd750fcd2b3e9c8e7a130587513433 /src
parentfc001b14c00f530d106400149b9be69837d6952f (diff)
Some minor tweaks and updated ssh stuff to the actual values instead of placeholders
Diffstat (limited to 'src')
-rw-r--r--src/components/BlogItem.astro12
-rw-r--r--src/content/blogs/_my-webdev-experience.md (renamed from src/content/blogs/my-webdev-experience-longer-poooooo-way-longer-yee.md)0
-rw-r--r--src/content/blogs/_test.md (renamed from src/content/blogs/test.md)8
-rw-r--r--src/content/blogs/the-search-for-the-perfect-ssh-key.mdx2
-rw-r--r--src/pages/index.astro18
5 files changed, 13 insertions, 27 deletions
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
index 6949572..6949572 100644
--- a/src/content/blogs/my-webdev-experience-longer-poooooo-way-longer-yee.md
+++ b/src/content/blogs/_my-webdev-experience.md
diff --git a/src/content/blogs/test.md b/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 = `