3 ms·
I write my blog in plain text files (because it's primarily intended for gopher), and then wrote a little node+express service that watches those text-files and
by dusted 5y ago
I write my blog in plain text files (because it's primarily intended for gopher), and then wrote a little node+express service that watches those text-files and applies a bit of regex to it to make links be links, and otherwise just formats it as html.
Here's how it looks
http://dusted.dk/pages/phlog/2021-12-14.txt http://dusted.dk/pages/phlog/2021-12-14.txt and
http://dusted.dk/pages/phlog/2021-12-14.txt?raw http://dusted.dk/pages/phlog/2021-12-14.txt?raw
to inline an image, i just refer to the name, so lol.png becomes an <img src="lol.png"> in the html.
My main compromise is that if it makes the plaintext less pretty, it can't go in, no tags.
My inline code blocks is made by matching for a language or file name ending with: and if the next line is indented, it is considered code.
Look at http://dusted.dk/pages/phlog/2019-12-20.txt http://dusted.dk/pages/phlog/2019-12-20.txt and the raw text http://dusted.dk/pages/phlog/2019-12-20.txt?raw http://dusted.dk/pages/phlog/2019-12-20.txt?raw