statically generate my website with a fish script
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nicola Pisanti c778b2a3b5 adds redirect, changes scriptools to scriptsuite 2 days ago
input adds redirect, changes scriptools to scriptsuite 2 days ago
.gitignore restarted clean 2 years ago
LICENSE.md adds license md 8 months ago
README.md updates readme 5 months ago
browse_local.sh finished porting to fish 5 months ago
build.sh adds redirect, changes scriptools to scriptsuite 2 days ago
fetch_data.sh updates scripts 8 months ago
memo.md more coherent single post pages 9 months ago
remove_target_blank.sh finished porting to fish 5 months ago
upload_data.sh finished porting to fish 5 months ago
upload_html.sh updates to redirects 5 months ago

README.md

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.