Post 9m8bfMP2X8sh62U3qi by Wolf480pl@niu.moe
(DIR) More posts by Wolf480pl@niu.moe
(DIR) Post #9m8bNULsEzziXMTt5M by sir@cmpwn.com
2019-08-22T07:49:13Z
2 likes, 0 repeats
Every static site generator sucks so muchHow do the people who make these live with themselvesIt's so fucking awful
(DIR) Post #9m8baZ3U46AMtB79W4 by fred@niu.moe
2019-08-22T07:52:13Z
0 likes, 0 repeats
@sirI gave up and made my own for my blog. Was a fun side project.
(DIR) Post #9m8bfMP2X8sh62U3qi by Wolf480pl@niu.moe
2019-08-22T07:53:04Z
0 likes, 0 repeats
@sir I was trying to think of a nice Unixy way of making a static website generator and the first 3 things that came to mi mind:- Makefiles- m4- that'd be terrible
(DIR) Post #9m8bp5p71x1qZWJtho by lschuermann@chaos.social
2019-08-22T07:53:35Z
0 likes, 0 repeats
@sir I feel you. Out of "sucks as it doesn't support many features" or "sucks as its scriptable and therefore unreliable, slow, etc." (I'm sure there's plenty more options of suckage), which one would you prefer? I used to prefer that latter, but that changed somehow...
(DIR) Post #9m8bt2pc620KS1RG08 by thatbrickster@aria.company
2019-08-22T07:55:34.347164Z
0 likes, 0 repeats
@sir Even Hugo?
(DIR) Post #9m8caofA8UFvFXQEVc by sir@cmpwn.com
2019-08-22T08:02:52Z
1 likes, 0 repeats
@thatbrickster especially hugo
(DIR) Post #9m8cgz868MNZRttje4 by asko@asko.dev
2019-08-22T08:03:09Z
0 likes, 0 repeats
@sir Explanation needed.
(DIR) Post #9m8cz4H3kGcscJiDkO by holsta@bsd.network
2019-08-22T08:06:47Z
0 likes, 0 repeats
@sir Indeed, but they all suck less than needlessly dynamic websites full of security bugs.
(DIR) Post #9m8dTVOlSj0nQepWEq by Jmtd@mastodon.cloud
2019-08-22T08:12:25Z
0 likes, 0 repeats
@sir this is timely. I've just opened my mastodon client to tweet about some static site conversion stuff I was writing.Oh, Ikiwiki is compelling in this space fwiw.
(DIR) Post #9m8elDz92iYwabrM48 by ignaloidas@mastodon.gamedev.place
2019-08-22T08:27:04Z
0 likes, 0 repeats
@sir Honestly what I want is a static site generator that is basically just a Jinja2 wrapper. I'll write my blog post in HTML, I'm just too lazy to wrap it into common styling and stuff.
(DIR) Post #9m8fTmYlrAByYvlo3c by erxeto@tilde.zone
2019-08-22T08:34:57Z
0 likes, 0 repeats
@sir Very true ... I tried a couple of them, even made my own stuff (which I did not like in the end) ...I've been using this for some time: https://www.romanzolotarev.com/ssg.htmlI'm happy with it, but my website has zero complexity. I mean it probably does not fit your needs.
(DIR) Post #9m8hEVoS2V7SBdx0sq by me@isaacsu.com
2019-08-22T08:54:29Z
0 likes, 0 repeats
@sir remember Movable Type? It randomly dawned upon me this morning that it was a static site generator!
(DIR) Post #9m8ikbF3UPGaFIG7fs by yojimbo@hackers.town
2019-08-22T09:12:24Z
0 likes, 0 repeats
@Wolf480pl @sirUse vi, and serve plain text files.Possibly under gopher:// ... but http is ok.
(DIR) Post #9m8izlZRMy6Wcj1fxA by Wolf480pl@niu.moe
2019-08-22T09:15:10Z
0 likes, 0 repeats
@yojimbo @sir The whole point of a static website generator is that you have some redundancy in the content you're serving.So you use Rule of Generation to remove that redundancy from the source form of your site.Can vi be scripted from commandline like sed? If it can, then maybe Makefile + vi would do the trick.
(DIR) Post #9m8jIZk3ZZPfRIxcNk by carl@linuxrocks.online
2019-08-22T09:17:45Z
0 likes, 0 repeats
@sirI love the idea of static site generator, it secure and fast. But I still didn't find any one with gettext support, they are all using their own non standard translation system.
(DIR) Post #9m8jLI2dq26NPawpfs by yojimbo@hackers.town
2019-08-22T09:19:02Z
1 likes, 0 repeats
@Wolf480pl @sir cat header.html content.txt footer.html > content.html ?That's the simplest template I can think of, and therefore the simplest templating system.I'd still argue that a shell script is more Unixy than make or m4. They're only "old", not "fundamental". The shell has been there from the beginning ...
(DIR) Post #9m8jp0QlsZt5TqP71E by Wolf480pl@niu.moe
2019-08-22T09:24:25Z
0 likes, 0 repeats
@yojimbo @sir yeah, and shell would be well suited for templating:while read page; do echo <<"EOF"<li> <a href="/pages/$page/">$page</a></li>EOFdone <pages.instill, I like makefile's idempotence, so I'd rathercontent.html: header.html content.txt footer.html\t cat $^ > $@especially if it's a multi-stage thing, where files generated by one stage are taken as input to another stage.
(DIR) Post #9m8kh5Yr1LeB1syPdA by yojimbo@hackers.town
2019-08-22T09:34:10Z
0 likes, 0 repeats
@Wolf480pl @sir make is an awful pile of accreted inconsistencies. The simple examples are simple, but it soon becomes stupidly complex.You really are far better off using a dedicated templating system; there are loads. And if its a website you want to build with HTML in it and internal auto-generated crossreferences ... well, a static site generator is what you're going to build, and there are ... a lot of those.I've been using Template Toolkit on and off for years, its one of the earliest, it's in perl and exposes perl in the templates if you want to, and I used to go to college with the author, so I have to say nice things about it! http://template-toolkit.org/
(DIR) Post #9m8mta79Rz3PAi6HuS by sir@cmpwn.com
2019-08-22T09:58:51Z
0 likes, 0 repeats
@Wolf480pl @yojimbo I made something like this once, it's not half bad tbh
(DIR) Post #9m8n2g4Ufg2yFnC84O by sir@cmpwn.com
2019-08-22T09:59:20Z
1 likes, 0 repeats
@Wolf480pl @yojimbo https://git.sr.ht/~sircmpwn/wersh
(DIR) Post #9m8nX1oyN3soOePJAG by yojimbo@hackers.town
2019-08-22T10:05:13Z
0 likes, 0 repeats
@sir @Wolf480pl Nice coding style. Fewer comments than I'd expect :-) But the job gets done!
(DIR) Post #9m8oAvo89HDVKT2ZKS by woffs@mastodon.sdf.org
2019-08-22T10:11:48Z
0 likes, 0 repeats
@sir I would be glad if someone reviewed https://woffs.de/wcm for security, although I'm probably the only user myself.
(DIR) Post #9mBy5RcpnAxFVPF5pQ by menn0@mastodon.nzoss.nz
2019-08-23T22:46:46Z
0 likes, 0 repeats
@sir so what are the problems you see with them?