touchup style, lowdown use ascii

This commit is contained in:
yosh 2024-04-03 11:21:25 -04:00
parent 84d4b5849d
commit d709119914
3 changed files with 13 additions and 8 deletions

View File

@ -42,7 +42,13 @@ __process_shp() {
}
__SHLVL=0
__lowdown() { lowdown --html-no-owasp --html-no-skiphtml --html-no-escapehtml "$@"; }
# lowdown wrapper function
__lowdown() {
lowdown --html-no-owasp --html-no-skiphtml --html-no-escapehtml "$@" | sed -E '
s/’/\'/g
s/–/--/g
s/&#8220|&#8221/\&quot/g'
}
# process a pure markdown file
# uses a special file in _INCDIR, `markdown-template.sh` to create the html

View File

@ -11,7 +11,7 @@ that name might ring a few alarm bells to anyone with a sense of morality. alas,
in normal speak, I have created probably the most cursed static site generator ever, by combining the inlining of php with the language of shell. I have spent too much time to refine this to a state where it's basically frictionless for me to use that I have looped back to being proud of it (I think this is called stockholm syndrome?)
## but why
this site you're reading right now is hosted on [unix.dog](https://unix.dog), a pubnix that doesn't really want users hosting *dynamic* pages. when I got a unix.dog account, there was no templating software such as php, hugo, etc. due to this, I was [making most of my pages manually](https://git.unix.dog/yosh/website/src/commit/62a41d9c17460dd1f445063f4f9aec8200891c52) to start off, which I knew very well wasn't going to scale. php did actually get added to the pubnix at some point between then and my "first draft" for something like this, but I don't remember when. Either way, I *thought* there wasn't any templating software still. I had a few options options: create my own using resources already on the system, ask (citali)[https://unix.dog/~nullobsi] to add something new, or find/compile one
this site you're reading right now is hosted on [unix.dog](https://unix.dog), a pubnix that doesn't really want users hosting *dynamic* pages. when I got a unix.dog account, there was no templating software such as php, hugo, etc. due to this, I was [making most of my pages manually](https://git.unix.dog/yosh/website/src/commit/62a41d9c17460dd1f445063f4f9aec8200891c52) to start off, which I knew very well wasn't going to scale. php did actually get added to the pubnix at some point between then and my "first draft" for something like this, but I don't remember when. Either way, I *thought* there wasn't any templating software still. I had a few options options: create my own using resources already on the system, ask [citali](https://unix.dog/~nullobsi) to add something new, or find/compile one
I chose to make my own. I've already had a bunch of experience writing shell, so I wanted to take a stab at another "big" thing in it, much like stuff akin to [flacconv](https://git.unix.dog/yosh/flacconv)

View File

@ -15,10 +15,9 @@ body {
margin: 8px auto;
font-family: "Tamzen16";
font-size: 16px;
display: grid;
gap: 16px;
text-align: center;
grid-template:
"header header " auto
"lbartop main " auto
@ -40,6 +39,7 @@ h1 {
font-family: "Tamzen9";
font-weight: bold;
font-size: 36px;
text-align: center;
}
h2 {
@ -47,6 +47,7 @@ h2 {
font-weight: bold;
font-size: 36px;
margin: 12px 0;
text-align: center;
}
h3 {
@ -69,7 +70,6 @@ h3, h4 {
p {
margin: 1rem;
line-height: 1.2em;
}
code {
@ -82,14 +82,12 @@ code {
pre > code {
display: block;
text-align: left;
padding: 0.25em;
margin: 0 1em;
white-space: pre-wrap;
}
blockquote {
text-align: left;
background-color: #2222;
}
@ -98,8 +96,8 @@ li::marker {
}
ul, ol {
text-align: left;
line-height: 1.5em;
margin-right: 1rem;
}
ul p, ol p {
@ -128,6 +126,7 @@ body > * {
body > header {
border: none;
background: none;
text-align: center;
}
header {