readme.md (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
This repo contains the content and generator for [deserthorns.net](https://deserthorns.net/). ## Generator (`build`) The site generator is written in Go and lives in the `build` directory. ### Requirements Go 1.23.4 ### Usage `./build <ROOT>` `<ROOT>` should be a path to the site's source directory. The source directory must contain the following subdirectories and files: - `pages/` - `templates/` - `assets/` - `site.json` If `<ROOT>` is omitted, the current directory will be used as the source directory. Generated files will be dropped in an `/out` directory in the working directory. #### Flags - `--serve`, `-s`: Builds site, then serves built site on port 8000. For previewing site, not for use in a live environment. Live environment should serve the static files from the `/out` directory. ### TODOs - Typography styling pass |