My new static site generator
- Smarty 60.8%
- Shell 39.2%
| src | ||
| static | ||
| templates | ||
| .gitignore | ||
| build.sh | ||
| README.md | ||
Jocelyns website
This repository contains the generator, static files and source files for my personal website.
Build
To build this website you need:
- GNU Bash (5.2.32)
- sed (4.9)
- Pandoc (3.1.11.1)
Any half-recent version should suffice, I added a tested version in parentheses. To run the build, execute the build.sh script from the root directory. This will:
- Delete the
distfolder if it exists - Create a dist folder
- Copy over all static files
- .rcss files will be put through cpp
- Compile the website from
srcintodist
Embedded scripting
Templates now use the pandoc template syntax, see pandocs documentation for details.
History
This tool started out as the website builder for my university site, only using pandoc for pure transformation and using a custom templating engine written using bash and awk.
I stopped doing that out of pragmatism (lazyness).