Add build info to ssg/README.md
This commit is contained in:
parent
c08c8132e9
commit
b8e182df14
1 changed files with 36 additions and 0 deletions
36
ssg/README.md
Normal file
36
ssg/README.md
Normal file
|
@ -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)
|
Loading…
Reference in a new issue