# csg csg is the "complicated (static) site generator". It's a decently simple static site generator, written in bash, with the capability to be extended via awk scripts. The overall design is heavily inspired by [Roman Zolotarev](TODO)'s [ssg](TODO), however the codebase is made from the ground up with the goal of adding more features. Mainly: - csg supports arbitrary file modifications via awk, which will have access to: - git-based "last edited" and "first created" timestamps, which are also cached for fast retrievals - word count - support for (multiple) description and title meta tags - support for custom title format ## How it works You write your pages in Markdown, you'll also need to have a `_header.html` and `_footer.html` files in the source of your site. Every page gets converted to HTML, your awk scripts are ran and then `_header.html` is slapped on the top, `_footer.html` on the bottom. All other files are copied to the output repository as-is. ## How to use This repository comes with a small demo setup, so just run: ```bash csg "./demo/awk-edits" "./demo/src" "./demo/website" "& - Demo" ``` The first argument is the folder in which you'll have your awk file modification scripts. The second is the folder with your website source. The third is the output folder. The fourth is the title format, where & is a special symbol, which will be replaced with the title of the page (the first h1 header).