mirror of
https://github.com/Kyren223/website.git
synced 2026-08-29 12:41:30 +00:00
Some minor tweaks and updated ssh stuff to the actual values instead of placeholders
This commit is contained in:
@@ -5,17 +5,7 @@ function formatDate(date: Date) {
|
|||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
const month = date.toLocaleString("default", { month: "long" });
|
const month = date.toLocaleString("default", { month: "long" });
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
|
return `${month} ${day}, ${year}`;
|
||||||
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}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ title: Test
|
|||||||
description: This is a test blog to... well.. test things!
|
description: This is a test blog to... well.. test things!
|
||||||
date: 1970-01-01
|
date: 1970-01-01
|
||||||
---
|
---
|
||||||
# My Title
|
|
||||||
|
|
||||||
## Secondary
|
## Secondary
|
||||||
|
|
||||||
@@ -17,14 +16,11 @@ This should be far
|
|||||||
- Adka kda kd ak
|
- Adka kda kd ak
|
||||||
- d kakd akd ka k
|
- d kakd akd ka k
|
||||||
|
|
||||||
- [ ] Check me
|
|
||||||
- [x] Already checked
|
|
||||||
|
|
||||||
## Smaller header
|
## Smaller header
|
||||||
|
|
||||||
How about code blocks
|
How about code blocks
|
||||||
|
|
||||||
```go example.go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
@@ -36,6 +32,6 @@ func main() {
|
|||||||
|
|
||||||
Hmm
|
Hmm
|
||||||
|
|
||||||
> Does this work
|
> Does this blockquote work
|
||||||
|
|
||||||
This is `highlighting` I think is what it's called
|
This is `highlighting` I think is what it's called
|
||||||
@@ -22,7 +22,7 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSSj+yfJLWEb+Df4r4603TOFAUBREYS43qQB+c9i9UW
|
|||||||
```
|
```
|
||||||
|
|
||||||
It consists of 2 parts, the algorithm, in this case it's
|
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.
|
The second part is a base64 encoded custom binary format.
|
||||||
|
|
||||||
Let's break it down
|
Let's break it down
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ const latestBlog = (await getCollection("blogs")).reduce((latest, blog) => {
|
|||||||
const sshKey = `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren`;
|
const sshKey = `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren`;
|
||||||
const fingerprint = `
|
const fingerprint = `
|
||||||
+--[ED25519 256]--+
|
+--[ED25519 256]--+
|
||||||
|+o.+oE*B%* o |
|
| +. .. +.B|
|
||||||
|o=...+++=.+ + |
|
| + o..o . BB|
|
||||||
|o B . o. . o + |
|
| ..o oo.o =+E|
|
||||||
|.+ + o . = |
|
| ... oo. + o.|
|
||||||
|. + . S o + |
|
| . S . = |
|
||||||
| . o . + |
|
| . . + o |
|
||||||
|. . . |
|
| o o o . |
|
||||||
|.. |
|
| oo .o+ + |
|
||||||
|. |
|
| ++ooo+= |
|
||||||
+----[SHA256]-----+`.trimStart();
|
+----[SHA256]-----+`.trimStart();
|
||||||
|
|
||||||
const aboutMe = `
|
const aboutMe = `
|
||||||
|
|||||||
Reference in New Issue
Block a user