Skip to content

Commit 9bb7919

Browse files
committed
add new capabilities and use them
1 parent a04cd1a commit 9bb7919

8 files changed

Lines changed: 53 additions & 13 deletions

File tree

content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ it's a miracle i'm even making this webpage right now .
2929
> *hey evie! hi evie! isn't this supposed to be the index page? where's the list of pages?*
3030
3131
shut the [-angry HELL] up! [-mutter when did i ever let YOU speak? who even are you? get out of here!!!]\
32-
**anyways** they're on that sidebar on the top left .\
32+
**anyways** they're in that submenu accessible through the menu button on the top right of the page .\
3333
i don't have a good design for a nav thingy yet so you get that for now.
3434

3535
> *why is this webpage so damn empty?? blahblahblahblah*

content/me.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ delisted: true
1010
consider viewing this document on my github pages instead!
1111
</p>
1212

13-
just a couple hours ago as of the time writing this post [-time 1770719731552],\
13+
just a couple hours ago as of the time writing this post {timestamp 1770719731552},\
1414
i have destroyed almost if not all of the builds of an old "housing" of mine,\
1515
[-mutter (a <a href="https://minecraft.net">minecraft</a> building plot world thing with a limited size hosted on the <a href="https://hypixel.net">hypixel network</a>, sorta like those "creative" worlds sometimes seen on minecraft servers)]\
1616
solely because i wanted more space for building.

content/meta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ besides, at least i feel compelled to *do something*! *to make something*! **for
5050

5151
this webpage is my passion project. that just sounds so corny doesn't it.\
5252
i've felt fun making this webpage. that's what matters, doesn't it?\
53-
it's just pure fun, making something from nothing.
53+
it's just fun, making something from nothing.
5454

5555
that's what matters. having fun.\
56-
[-mutter <i>i've never felt so fun in my life.</i>]
56+
[-mutter <i>i've never felt so much fun in my life.</i>]

content/not-found.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ i don't care! have fun .
2121

2222
[-mutter
2323
check your URL.<br>
24-
if at first you don't URL, URL again.]
24+
if at first you don't URL, URL again.]
25+
26+
[go back]({history -1})

content/occasions/birthday-2026.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# y ay!! i'm [ONE] year closer to [the destruction of my current lifeforce]!!!
22

3-
as of today [-time long 1770656400000]
3+
as of today {timestamp long 1770656400000}
44
i'm now 19!!! what an honor.\
55
[-mutter how did i even live for this long]
66

@@ -14,4 +14,4 @@ truly an extravagant birthday!! hopefully there won't be more to come.
1414

1515
[-mutter and yes the day went on as usual...]
1616

17-
[go back](/occasions)
17+
[go back]({previousPath})

content/you.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@ are you someone i trust?\
2222
are you someone i care about?
2323
<br><br><br>
2424
ultimately, it does not matter.\
25-
all identity is lost through the cover of the web browser. [-mutter (technically isn't true but still)]
26-
27-
henceforth all content will not be directed towards a single audience but it will be for everyone.
25+
all identity is lost through the cover of the web browser. [-mutter (technically isn't true but still)]

src/postprocessor.js

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,31 @@ const postprocessors = Object.freeze(
22
[
33
(root) => root
44
.querySelectorAll('.github-only')
5-
.forEach((e) => e.remove())
5+
.forEach((e) => e.remove()),
6+
7+
// history "link" hack - part 2
8+
(root) => root
9+
.querySelectorAll('a[href^="/__secretevilpathnoonewoulduseonpurpose_history_"]')
10+
.forEach((e) => {
11+
const amount = Number(
12+
new URL(e.href)
13+
.pathname
14+
.replace('/__secretevilpathnoonewoulduseonpurpose_history_', '')
15+
)
16+
17+
e.href = ''
18+
19+
if (!Number.isNaN(amount)) {
20+
e.href = '/'
21+
e.title = `go ${amount < 0 ? 'back' : 'forward'} by ${Math.abs(amount)} page${Math.abs(amount) !== 1 ? 's' : ''}`
22+
e.addEventListener('click', (e) => {
23+
e.preventDefault()
24+
e.stopPropagation()
25+
26+
history.go(amount)
27+
})
28+
}
29+
})
630
]
731
)
832

src/preprocessor.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
const preprocessors = Object.freeze(
22
[
33
{
4-
filter: /\{age\}/g,
4+
filter: /{age}/g,
55
replacer: () => {
66
const age = (Date.now() / 1000 - 1171040400) / 31536000
77
return `${Math.floor(age)}${age - Math.floor(age) >= .8 ? ` (almost ${Math.ceil(age)})` : ''}`
88
}
99
},
1010

11+
{ // go back, like literally go back on the path tree, not history
12+
filter: /{previousPath(?:\s+-([0-9])+)?}/g,
13+
replacer: (_, amount = 1) =>
14+
location.pathname
15+
.split('/')
16+
.slice(0, -Number(amount))
17+
.join('/')
18+
|| '/'
19+
},
20+
21+
{ // history "link" hack - part 1
22+
filter: /{history\s+(?:(-))?([0-9]+)}/g,
23+
replacer: (_, neg, amount) =>
24+
`/__secretevilpathnoonewoulduseonpurpose_history_${neg || ''}${amount}`
25+
},
26+
1127
{
12-
filter: /\[-time(\slong)?\s+([0-9]+)\s*\]/g,
28+
filter: /{timestamp(\slong)?\s+([0-9]+)}/g,
1329
replacer: (_, modifier = '', timestamp) => {
1430
const long = new Intl.DateTimeFormat(undefined, {
1531
weekday: 'long',

0 commit comments

Comments
 (0)