nexy7574.co.uk-b/ssg
2024-06-19 17:45:18 +01:00
..
src I'm not 17 anymore (as of many days ago, I just forgot) 🎉 2024-06-19 17:45:18 +01:00
.eleventy.js Add technologies page 2024-06-18 02:11:20 +01:00
package-lock.json Make use of static-site generation with 11ty 2024-06-18 01:28:00 +01:00
package.json Make use of static-site generation with 11ty 2024-06-18 01:28:00 +01:00
README.md Add build info to ssg/README.md 2024-06-18 01:50:11 +01:00

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

cd ssg
npm i
npm run build

Serving

Write this Caddyfile:

site.example {
    root * ./_site
    encode {
        zstd
        gzip 9
    }
    file_server
}

Then deploy:

caddy run

Then go to http://site.example (well, whatever you changed it to)