3 ms·
I’ve spent countless days trying various static site generators and alternatives. I was trying to replace a self host Wordpress site with github pages to save m
by randomsearch 7y ago
I’ve spent countless days trying various static site generators and alternatives. I was trying to replace a self host Wordpress site with github pages to save money.
I am now planning to instead build a new wordpress site and self host somewhere cheaper. WP is a PITA from a security point of view, but the alternatives are IMO uniformly terrible. WordPress just works and has a good ecosystem of plugins and themes.
I was really disappointed with the static site generators. I’d love to write one that works as I’d expect - a simple way to turn markdown into a site with a single config file and python command, no complex setup, no using git as a package manager etc. with a ready set of auto-generated based on themes for other packages - but this will be a future project.
It would look something like:
/pages - contains markdown pages
/posts - markdown posts
/themes - one subdir per theme
/output - generated html
To generation html “ssg” in the root dir.
The themes would be anything you like, with very few template tags. The markdown would be translated to simple html and inserted in the files.
pip install ssg
create a page in /posts with a title and body
ssg
open output/index.html