Hacker News new | ask | show | jobs
by grandempire 497 days ago
You actually skipped making an adhoc site generator of your own.

Make a 5 line shell script to do steps 1 and 2 for your entire site. Then the content is just a few paragraph and link tags. Throw in a call to markdown if you want to get fancy.

1 comments

Back in the day I'd use a WYSIWYG editor to design a front page and navbar and whatever, then split each part into header, nav, footer files and have code spit out the template HTML in the correct order with "body" file chosen by the URI

This is static site generation? I had another name, basically it was CMS for people that used ms word to type blog posts

Doing this again with a markdown step sounds cool

I think a real cms just has like tag engines and the ability to group posts and that sort of thing. But a site where everything is chronological; and otherwise only "wicked" - linked via potholes in posts is really all I need.

Maybe. I do need 2 blog sites here soon. I'll try templating for one and a ssg for the other maybe.

That’s the idea. But static site generation just means doing that templating before, so your site is a zip of html and assets.

Yeah can probably get a whole static site from a python script that loads jinja. There are lots of ways.

I just think this stuff is so easy and there is so many good tools that it is worth tailor making a solution you like.

oh, right. so every time you want to post something you have to run the generator? i think that's why i ended up rolling my own templating thing, asking the sorts of people i set it up for to invoke some other software was a bridge too far. i don't remember how i automated moving the text from their machine to the server but it was "once it's saved it's in there" sort of thing. this was early 2000s, i stopped setting up personal sites for people around 2006.