~npisanti/npisantidotcomssg

statically generate my website with bash
tweaks more page
more biblically accurate

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~npisanti/npisantidotcomssg
read/write
git@git.sr.ht:~npisanti/npisantidotcomssg

You can also use your local clone with git send-email.

#npisantidotcomssg

Here are all the files and the script that generate my website, and some helpers to fetch and upload data.

My static site generator is a script of less than 400 lines of code, made for the fish shell. The CSS for the entire site is less than 1kb.

This is also a proof that shell scripting, although not very efficient, can be a viable way for generating small to medium websites, expecially the ones not updated that often. My script puts together various bits of html, but you can easily use any kind of markup languages you want, maybe also converting media on the fly while you traverse the folders.

So next time you are tired of bloated frameworks you don't need, why not to try your shell?

Nicola Pisanti MIT License 2020.