Edit: Bonus! I did the same for my brothers website: https://schnittfest.gmbh/ Just if you're curious.
A workplace of dreams. What else do you need anyway?
Turns out html covers pretty much everything. Learned a few cool things along the way like:
- `@media (prefers-color-scheme: dark)` (Still working on nailing down color contrast there)
- doing footnotes via anchor tags that (a) automatically number themselves in text with counters and (b) automatically highlight the footnote using the `:target` selector.
not a single line of JS. The biggest perf issue by far is a font that's 64KB, which is probably including more than it needs to.
Deploying is 1 line of `scp`. Recently I got all fancy and added 30 lines of bash to support flags for only deploying assets or posts.
all of it is so fast. Coming from rails and react and all of that, it's refreshing.
If I ever make a static dev blog, I'm doing the same. I've tried hugo, and it just felt way overcomplicated for what I was trying to accomplish.
curl https://anderspitman.net/txt/19
nc txt.anderspitman.net 3838 <<< /txt/19
If your plain text document has line breaks to enforce some column width it will rarely match a browser's viewport width. This means the browser will break lines to fit in the viewport but still respect line breaks. So you get lines broken by the viewport and then line breaks a few words later. The text does not flow well at all.
If you only have line breaks at the end of paragraphs the text might flow better but the default viewport width on mobile browsers is (usually) 980px. Desktop browsers set their viewport width to the window width. In either case text ends up hard to read because lines end up really long.
You also lose hyperlinking which makes the web...a web.
If you want a plain text website just make it HTML with a minimal or no stylesheet. A single viewport meta tag will keep the page readable everywhere. Setting it to the device width will make mobile browsers reflow the text based on the screen size.
No one is going to read your blog with netcat or just curl into a pager.
I have an HTML version of my blog for people who want to read it in browsers.
> No one is going to read your blog with netcat or just curl into a pager.
No one is going to read my blog, period.
Idk, maybe we should revive the world of information served raw over TCP or telnet. HTTP is out of control.
Before you reply please keep in mind JavaScript web apps don't have anything to do with HTTP.
You can make an argument that HTTP should be replaced with another application later protocol but just raw sockets everywhere is ridiculous.
HTTP has eaten the world of application layer protocols because it is flexible and expressive. It's also relatively easy to implement and there's lots of good FOSS server packages available. Most servers make it really easy to plug in back end applications. Combine that with ubiquitous HTTP clients and it's a super low barrier to entry.
You're not going to replace that ecosystem easily and you definitely won't replace it with raw sockets.
Well eventually the hosting provider no longer supported such an old version of php and the old cms did not support the new php... So it was either re-code the whole site for the new cms or dump it to html and html (with php header and footer) won.
I did a basic html page, using an open source css lib, cirrus[1]. Changes are very simple, and I use gitlab pages. My blog is still backed by ghost. But I think raw html is still very powerful.
I kinda blacked out and came to 5 seconds later, and thanks to autocomplete and muscle memory, the whole skeleton of a document was there. HTML and Head and title and body and all that. It was so fast & fluid.
I'm ashamed to say I'd kinda forgotten how easy it is to just write fucking HTML. It's even got me reconsidering things like Markdown—I mean, fine for webforms and such, but if I'm just writing a document, is it of any use? Toss in a script to add a menu & header to every page & dump the output in a folder and I'm not sure I need more, now, and I can write that in Perl or Bash or Python or whatever in a minute or three and it'll run everywhere, nothing to install.