by dmje · 3y ago · 0 comments
What happened to "I'll edit this .html file and FTP it up, with maybe a light sprinkling of CSS and js for any interactive elements"? Why did devs get obsessed with a deeply complex jamstack type thing to do even incredibly simple sites?
It's like a sort of "iceberg web" - small on the surface but hiding a mountain of complexity and dependencies under the surface.
I made my own static site builder (typical HN!) and it's just a python package. At its simplest it depends on Python Markdown and Jinja.
The website itself is dead simple and gracefully degrades. It's just text on a page after all.
Same! I designed the look of my site, and then wrote Python to generate it, though instead of Jinja I even wrote my own templating library. The goal of reinventing the wheel was to learn Python through writing a non-trivial, useful app and libraries.
I haven't quite mustered up the courage to publish the source, yet, though: being a learning exercise I'm painfully aware some of the code is not as good as it should be. And I'm still learning what makes Python code Pythonic.
> What happened to "I'll edit this .html file and FTP it up..."
A SSG _is_ that, these days. My SSG generates my own site design. If I tweak the site's look and feel, I do that once and re-run the SSG. I wouldn't want to have to do that across multiple HTML files.
My process is:
* Write Markdown
* Run the SSG script
* FTP it up (overwriting previous contents; I have dated backups of every version, and the most recent run of the SSG is the canonical version.)
I entered the site in the competition, since it's no-Javascript, pure HTML & CSS, minimal, manuscript-style typographic focus, with articles on design, management, and the just plain miscellaneous. Very much going for the 'old-school personal site about whatever someone finds interesting' feeling, and hopefully some bits will be of interest to HN people too, maybe. https://daveon.design if you're interested!
It also converts and resizes images, processes SCSS, and a few other things that suit my workflow.
Editing source-controlled files in a familiar text editor is blissful.
There should be a reasonable amount of accessibility markup too (in how it's structured plus some specific accessibility items) for screen readers as well.
Because devs don't think of websites like a place for personal expression; to them, personal websites are usually roughly structured wikis of stuff they've learned that would be mostly hard to read or follow for others.
So they geek out over the details of the blog infrastructure. If instead of a website, they were asked to draw something, they'd focus on the sturdiness of the paper.
What happened are people being annoyed with hand-fucking html every time they want to write a blogpost started writing/using static site builders
When all you have are frameworks, everything looks like JavaScript.
https://www.seazhang.com/, Link are given as examples, because blog content is Chinese and personal, not worth mentioning.