An SSG implemented in bash
/posts
to static HTML in /output
Key | Description | Required? |
---|---|---|
title | Page title | Yes |
description | The OpenGraph description | Yes |
date | Publication date | No |
subtitle | Page subtitle | No |
unlisted | true suppress the index listing | No |
index.html
, newest first. Undated posts appear last.
mkwww.sh
:
config.sh
to your valuesbash
shell with awk
, sed
, and other other typical GNU tools"$CF_PAGES" = "true"
in the Cloudflare build configuration. This triggers the script to install Pandoc in the build container, and skip the debouncing logic used by the hot reload server.mkwww.sh
in the root of the repo. It will create an output
directory with the generated HTML files.pip install -r requirements.txt
to run the hot reload server. This is optional, but recommended for local development. Or, use direnv
to create a virtual environment automatically based on the .envrc
file../dev-server.py
. This will watch for changes in the posts
directory and automatically rebuild the HTML files when changes are detected../output/index.html