Some minor tweaks and updated ssh stuff to the actual values instead of placeholders

This commit is contained in:
2024-11-15 16:56:41 +02:00
parent fc001b14c0
commit d1f73304f6
5 changed files with 13 additions and 27 deletions

View File

@@ -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 {

View File

@@ -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

View File

@@ -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

View File

@@ -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 = `