static site generator based on pandoc
| example | ||
| .editorconfig | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| pssg | ||
| README.md | ||
| sites.txt | ||
| TODO.md | ||
pandoc static site generator
this is a shell script for creating static websites from Markdown files using Pandoc.
it's derived from the makefiles originally written for cyberia.club and layerze.ro, which this will eventually be used for and probably queercoded.xyz too.
USAGE
Setup
- install pandoc
- copy
example/or start a new folder for your site with this structure:
site/ base.html metadata.yaml pages/ index.md static/ theme.css ```
- everything under
pages/is rendered throughbase.html, and everything instatic/is copied over - stuff in
metadata.yamlis included with all pages - the final site will go in
build/
Running once
you can specify one or more site paths as command-line arguments:
pssg /path/to/site /path/to/another/site
you can instead list them one per line in a file passed after -s or --sites-file. otherwise it will use sites.txt in this directory.
Running with a Cronjob
- put paths to your site(s) separated by newlines in a sites file (see above).
- point your webserver (nginx, caddy) to
build/inside each site. - put the following in
/etc/cron.d/pandoc-ssg:
-
-
-
-
- root /path/to/pandoc-ssg/pssg --ci
-
-
-
Watch for changes
1. install entr
2. pass the flag
not available yet-w or --watch (can't be used with --ci)
LICENSE
CC-BY-SA 4.0 International - cyberia computer club