diff options
| -rw-r--r-- | GNUmakefile | 4 | ||||
| -rw-r--r-- | src/contact.md | 14 | ||||
| -rw-r--r-- | src/index.md | 3 | ||||
| -rw-r--r-- | src/misc/buttons.md | 14 | ||||
| -rw-r--r-- | src/misc/index.md | 3 | ||||
| -rw-r--r-- | src/music.md | 8 | ||||
| -rw-r--r-- | static/stylesheet.css | 39 | ||||
| -rw-r--r-- | template.html | 59 | ||||
| -rwxr-xr-x | template.pl | 17 |
9 files changed, 74 insertions, 87 deletions
diff --git a/GNUmakefile b/GNUmakefile index b56bf39..449c6f6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -13,10 +13,6 @@ out/%.html: src/%.md template.html template.pl @mkdir -p $(dir $@) ./template.pl $< > $@ -out/%: src/% - @mkdir -p $(dir $@) - cp $< $@ - out/%: static/% @mkdir -p $(dir $@) cp $< $@ diff --git a/src/contact.md b/src/contact.md index ae9d0a3..d420896 100644 --- a/src/contact.md +++ b/src/contact.md @@ -1,20 +1,20 @@ -# contact +Title: contact -*fedi* +fedi : <https://social.xenofem.me/users/azureazure> -*signal* +signal : ask -*irc* +irc : azure @ irc.xenofem.me (i'm online 24/7 feel free to ping) -*mail* +mail : azureazure () disroot ! org ## donations -*monero* +monero : `83FxBRziyTQWuPKqGTesWGjLfM5Vai8QSbikur5zGHWKFc584cgmbKHjWpQoJzR9Su7NVEX9GVg23iksCKp8doBFCVSsGca` - +
\ No newline at end of file diff --git a/src/index.md b/src/index.md index 33bb968..2dc8d5b 100644 --- a/src/index.md +++ b/src/index.md @@ -1,4 +1,4 @@ -# slimegirl.nexus +Title: slimegirl.nexus ## about This is the personal website of philomena (she/her) also known as lemurianmage @@ -6,3 +6,4 @@ and azureazure in other places. My interests include mathematics, philosophy, C, UNIX, Lisp and electrical engineering. My paws are big and my tail is fluffy. - [music](music.html) +- [misc](misc/index.html) diff --git a/src/misc/buttons.md b/src/misc/buttons.md new file mode 100644 index 0000000..c0c3a52 --- /dev/null +++ b/src/misc/buttons.md @@ -0,0 +1,14 @@ +Title: buttons + +friends and things and such. + +[](https://www.gnu.org/software/emacs/){ .button } +[](https://kittenlikeasmallcat.neocities.org){ .button } +[](https://quasivoid.net){ .button } +[](https://unlife.nyx.land){ .button } +[](https://social.xenofem.me){ .button } +[](https://secondshell.net){ .button } +[](https://twinningl00m.neocities.org){ .button } +[](https://magentahardcore.com){ .button } + +mine coming soon(tm).
\ No newline at end of file diff --git a/src/misc/index.md b/src/misc/index.md new file mode 100644 index 0000000..c3b70c4 --- /dev/null +++ b/src/misc/index.md @@ -0,0 +1,3 @@ +Title: miscellaneous + +- [buttons](/misc/buttons.html) diff --git a/src/music.md b/src/music.md index d0c5621..926eced 100644 --- a/src/music.md +++ b/src/music.md @@ -1,4 +1,4 @@ -# music +Title: music  @@ -20,16 +20,16 @@ prog rock and jungle and pretty much everything electronic and some forms of metal. ## cool stuff -*<https://jungletrain.net>* +<https://jungletrain.net> : 24/7 jungle radio. you can use the m3u playlists with whatever music player you like, no need to use the website. -*soulseek* +soulseek : p2p musick sharing network. all the clients fucking suck but i've *never* encountered a song i couldn't find on there. it's free. it fucking rocks go use it. nicotine+ is the least shitty client out there. -*<https://rateyourmusic.com>* +<https://rateyourmusic.com> : the userbase has probably the worst opinions on music known to everybody (just look at the top all time chart) but sometimes you'll find a trve kvlt gem. diff --git a/static/stylesheet.css b/static/stylesheet.css index f1ec681..560d490 100644 --- a/static/stylesheet.css +++ b/static/stylesheet.css @@ -5,27 +5,34 @@ body max-width: 80ch; margin: auto; font-family: serif; - font-size: 1.2em; + font-size: 1.3em; padding: 0 1em; text-align: justify; } -nav, h1 { text-align: center; } +nav, #title-block-header, footer { text-align: center; } -blockquote +nav { padding-top: 1em; } + +blockquote, code { border: 1px solid; - border-left: 6px solid; - padding-left: 0.5em; + backdrop-filter: invert(10%); + margin-inline: auto; } -hr +code { - border: 0; - border-bottom: 1px dashed; + overflow: scroll; + display: block; + padding: 0.5em; } -code { overflow: scroll; } +blockquote +{ + border-left: 6px solid; + padding-left: 0.5em; +} article img { @@ -33,17 +40,13 @@ article img margin: auto; margin-top: 1em; margin-bottom: 1em; + max-width: 100%; } -footer -{ - text-align: center; - font-size: 0.9em; -} +pre { overflow: scroll; } -pre +.button > img { - overflow: scroll; + text-decoration: none; + display: unset; } - -a { text-decoration: none; } diff --git a/template.html b/template.html index 37f314e..ea53fa8 100644 --- a/template.html +++ b/template.html @@ -1,50 +1,33 @@ <!DOCTYPE html> -<html> +<html lang="en"> <head> - <meta charset="utf8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title></title> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width,initial-scale=1"> + $ifdef(date)$ + <meta name="date" content="$date.escapehtmlattr$"> + $endif$ <link rel="stylesheet" href="/stylesheet.css"> + $for(css.split)$ + <link rel="stylesheet" href="$this.escapehtmlurl$"> + $endfor$ + $for(javascript.split)$ + <script src="$this.escapehtmlurl$"></script> + $endfor$ + <title>$ifdef(title)$$title.escapehtml$$endif$</title> + $htmlheader$ </head> <body> - <h2> - <nav> - <a href="/">home</a> - / - <a href=".." id="go-up">go up</a> - </nav> - </h2> - - <article></article> + <nav> + <a href="/">home</a> + / + <a href=".." id="go-up">go up</a> + </nav> + <article>$body$</article> <hr> - <footer> <address><a href="contact.html">contact</a></address> <br> - <a href="https://www.gnu.org/software/emacs/"> - <img src="/buttons/emacs.png" title="emacs"> - </a> - <a href="https://kittenlikeasmallcat.neocities.org"> - <img src="/buttons/kitten.gif" title="kittenlikeasmallcat"> - </a> - <a href="https://quasivoid.net"> - <img src="/buttons/quasivoid.gif" title="vivienne"> - </a> - <a href="https://unlife.nyx.land"> - <img src="/buttons/unlife.png" title="nyx"> - </a> - <a href="https://social.xenofem.me"> - <img src="/buttons/xnfm.png" title="xenofem.me"> - </a> - <a href="https://secondshell.net"> - <img src="/buttons/secondshell.webp" title="secondshell"> - </a> - <a href="https://twinningl00m.neocities.org"> - <img src="/buttons/murrumurgreen.png" title="twinningl00m"> - </a> - <a href="https://magentahardcore.com"> - <img src="/buttons/n1l.gif" title="n1l"> - </a> </footer> + </body> </html> diff --git a/template.pl b/template.pl index 5c97e61..793f9b3 100755 --- a/template.pl +++ b/template.pl @@ -11,22 +11,9 @@ use File::Basename; use open qw( :std :encoding(UTF-8) ); -my $template = do { - local $/; - open my $fh, '<', 'template.html'; - <$fh>; -}; +my $content = `lowdown --html-titleblock --html-no-head-ids -s --template template.html $ARGV[0]`; -my $dom = Mojo::DOM->new($template); - -my $content = `lowdown --html-no-head-ids $ARGV[0]`; - -# inject content @ <article> -$dom->at('article')->content($content); - -# replace <title> with the contents of the first <h1> -my $title_dom = $dom->at('h1'); -$dom->at('title')->content($title_dom->text) if ($title_dom); +my $dom = Mojo::DOM->new($content); # makes the up button go up a directory my $parent = dirname $ARGV[0]; |
