From 95363147e9f8cf3186531e5f249d3869abc622e6 Mon Sep 17 00:00:00 2001 From: lemurianmage Date: Mon, 22 Jun 2026 23:03:23 +0200 Subject: lowdown for templating now --- GNUmakefile | 4 ---- src/contact.md | 14 ++++++------ src/index.md | 3 ++- src/misc/buttons.md | 14 ++++++++++++ src/misc/index.md | 3 +++ src/music.md | 8 +++---- static/stylesheet.css | 39 ++++++++++++++++++---------------- template.html | 59 ++++++++++++++++++--------------------------------- template.pl | 17 ++------------- 9 files changed, 74 insertions(+), 87 deletions(-) create mode 100644 src/misc/buttons.md create mode 100644 src/misc/index.md 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 : -*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` -![Monero public address QR code](monero-qr.png) +![Monero public address QR code](monero-qr.png) \ 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. + +[![emacs](/buttons/emacs.png)](https://www.gnu.org/software/emacs/){ .button } +[![kittenlikeasmallcat](/buttons/kitten.gif)](https://kittenlikeasmallcat.neocities.org){ .button } +[![quasivoid](/buttons/quasivoid.gif)](https://quasivoid.net){ .button } +[![nyx land](/buttons/unlife.png)](https://unlife.nyx.land){ .button } +[![xenofemme](/buttons/xnfm.png)](https://social.xenofem.me){ .button } +[![secondshell](/buttons/secondshell.webp)](https://secondshell.net){ .button } +[![twinningl00m](/buttons/murrumurgreen.png)](https://twinningl00m.neocities.org){ .button } +[![333voidgirl](/buttons/n1l.gif)](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 !["MAN, AM I PISSED..." "WANNA TRANQUILIZE WITH SOME NEW AGE MUSIC?"](newage.jpg) @@ -20,16 +20,16 @@ prog rock and jungle and pretty much everything electronic and some forms of metal. ## cool stuff -** + : 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. -** + : 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 @@ - + - - - + + + $ifdef(date)$ + + $endif$ + $for(css.split)$ + + $endfor$ + $for(javascript.split)$ + + $endfor$ + $ifdef(title)$$title.escapehtml$$endif$ + $htmlheader$ -

- -

- -
+ +
$body$

- + 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 @
-$dom->at('article')->content($content); - -# replace 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]; -- cgit v1.2.3