From b8e182df141f02c1a018d75b6ff1fad5607f0527 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Tue, 18 Jun 2024 01:50:11 +0100 Subject: [PATCH] Add build info to ssg/README.md --- ssg/README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ssg/README.md diff --git a/ssg/README.md b/ssg/README.md new file mode 100644 index 0000000..2e8f2c2 --- /dev/null +++ b/ssg/README.md @@ -0,0 +1,36 @@ +# SSG Edition + +The original site was migrated to use 11ty in order to take advantage of features like templating. + +Now `/ssg/_site` should be deployed. + +## Building + +```bash +cd ssg +npm i +npm run build +``` + +## Serving + +Write this Caddyfile: + +```caddy +site.example { + root * ./_site + encode { + zstd + gzip 9 + } + file_server +} +``` + +Then deploy: + +```bash +caddy run +``` + +Then go to http://site.example (well, whatever you changed it to)