Skip to content

Commit aec887a

Browse files
committed
make blockquote "dialogues" their own thing so that i can actually use them as intended
1 parent 211b964 commit aec887a

10 files changed

Lines changed: 69 additions & 9 deletions

File tree

content/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ i used to be obsessed with tinkering with web technologies but i've lost interes
2626
\
2727
\
2828
it's a miracle i'm even making this webpage right now .
29-
> *hey evie! hi evie! isn't this supposed to be the index page? where's the list of pages?*
29+
> {dialogue} *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!!!]\
3232
**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

35-
> *why is this webpage so damn empty?? blahblahblahblah*
35+
> {dialogue} *why is this webpage so damn empty?? blahblahblahblah*
3636
3737
[-angry because i haven't figured out what to add yet okay shut UP you're so-]\
3838
whoops lost my composure there! anyways this webpage is to remain mostly empty until i figure out what to add to it. goodbye!

content/meta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ then, on the *"frontend"*, i just have the webpage pull that list using a fetch
3232
does it all make sense yet?\
3333
no?
3434

35-
> *evie, you know, there are better ways to make a website. like buying a vps, and then putting a real web server on there...*
35+
> {dialogue} *evie, you know, there are better ways to make a website. like buying a vps, and then putting a real web server on there...*
3636
3737
oh yeah.\
3838
you're right...\
@@ -42,7 +42,7 @@ it's not like, my family is [-angry struggling] to keep up with my college tuiti
4242

4343
moving on...
4444

45-
> *evie, even so, you know, there are better ways to make a static webpage... like generating html from markdown files or whatever...*
45+
> {dialogue} *evie, even so, you know, there are better ways to make a static webpage... like generating html from markdown files or whatever...*
4646
4747
but that's ***no fun***, is it?\
4848
my webpage would just be another *slop project*, with no [-rapid challenge] to it..\

content/music.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
... ~~you can find them [here](https://open.spotify.com/playlist/7Gfvs4A320zPRQG1DG51nx), on spotify.~~\
1212
[-mutter (edit) i'm no longer using this playlist; i'm now making a playlist monthly to put stuff that i'm currently interested in since that's not possible with the current singular playlist approach]
13-
> *evie, spotify **fucking** sucks! why aren't you using something else?????*
13+
> {dialogue} *evie, spotify **fucking** sucks! why aren't you using something else?????*
1414
1515
yes i know spotify may not be the most upright company but there are not that many good alternatives for me right now [-mutter (has to be a streaming service with an expansive library + be easy and not take a thousand years to transfer my privated 1k+ songs playlist from spotify to it)].
1616

content/not-found.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ delisted: true
1111
<br>
1212
</p>
1313

14-
> *i don't know!!! evie save me!!!!!!!*
14+
> {dialogue} *i don't know!!! evie save me!!!!!!!*
1515
1616
dOES IT LOOK LIKE [-angry I KNOW????] go FIGURE IT OUT YOURSELF
1717

18-
> *what if i can't??*
18+
> {dialogue} *what if i can't??*
1919
2020
i don't care! have fun .
2121

content/web-badges.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: web badges
3+
---
4+
# web badges are neat
5+
<p class="github-only">
6+
<b>hi curious github user skimming through my page's source code</b>
7+
<br>
8+
this markdown document may not be displayed properly because i have added custom """formatting""" that regular or github markdown doesn't have
9+
<br>
10+
consider viewing this document on my github pages instead!
11+
</p>
12+
13+
for those who don't know what they are, here's [a definition of what a web badge is](https://en.wikipedia.org/wiki/Web_badge), courtesy of wikipedia:
14+
15+
> *Web badges, buttons or stickers are small images on web pages, typically part of the footer. They can be used for promotion, stating compliance with web standards or to comply with an application's terms of service.*
16+
17+
and here's [a list of them, linking to pages on neocities](https://neonaut.neocities.org/cyber/88x31). pretty neat, huh?
18+
19+
after seeing that i really really wanted to make my own;\
20+
so i did! here it is: [-mutter (sorry if its low effort i made it in 2 minutes with aseprite)]
21+
22+
[![evie's pages: blog](/resources/badge.png)](https://evie.is-a.dev)
23+
24+
i DO wanna make a better one some day.\
25+
[-mutter maybe tomorrow,\
26+
maybe never.\
27+
we'll see...]

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h3>changelog</h3>
4141
<div id="changelog-container"></div>
4242
</div>
4343

44-
<main>
44+
<main id="main">
4545
loading ...<br>
4646
<br>
4747
<br>

resources/badge.png

1.1 KB
Loading

src/postprocessor.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ const postprocessors = Object.freeze(
33
(root) => root
44
.querySelectorAll('.github-only')
55
.forEach((e) => e.remove()),
6+
7+
(root) => root
8+
.querySelectorAll('[blockquote-dialogue]')
9+
.forEach((e) => {
10+
if (e?.parentNode?.parentNode?.tagName === 'BLOCKQUOTE')
11+
e.parentNode.parentNode.classList.add('dialogue')
12+
13+
e.remove()
14+
}),
15+
16+
// make img alts also show up as a tooltip on pc
17+
(root) => root
18+
.querySelectorAll('img[alt]')
19+
.forEach((e) => e.title = e.alt),
620

721
// history "link" hack - part 2
822
(root) => root

src/preprocessor.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ const preprocessors = Object.freeze(
4747
}
4848
},
4949

50+
{
51+
filter: /{dialogue}/g,
52+
replacer: () =>
53+
`<span blockquote-dialogue></span>`
54+
},
55+
5056
{
5157
filter: /\[-([^\n\s]+)\s+([^\]]+)\s*\]/g,
5258
replacer: (_, mod, content) =>

src/styles.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,22 @@ p {
128128
background-color: var(--bg);
129129
}
130130

131-
blockquote {
131+
blockquote:not(.dialogue) {
132132
margin: 0;
133+
padding: 4px 8px;
133134

135+
border-radius: 4px;
136+
border-left: 4px solid var(--chaotic-pure);
137+
background-color: var(--bg);
138+
}
139+
140+
blockquote:not(.dialogue) p {
141+
margin: 0;
142+
}
143+
144+
blockquote.dialogue {
145+
margin: 0;
146+
134147
color: var(--fg-2);
135148

136149
text-align: right;

0 commit comments

Comments
 (0)