krz/krz.sh
clone: git clone https://gitbay.org/krz/krz.sh.git
main: README.nfo · raw
1┌──────────────────────────────────────────────────────────────┐
2│ K R Z . S H [ KRZ ] krz.sh │
3└──────────────────────────────────────────────────────────────┘
4
5WHAT
6 source for krz.sh, the krz website. built with zola.
7
8DEVELOP
9 zola serve
10
11 open http://127.0.0.1:1111.
12
13BUILD
14 zola build
15
16 output goes to public/.
17
18STRUCTURE
19 config.toml site config
20 content/ pages (home, services/, apps/, about/)
21 templates/ tera templates
22 sass/main.scss styles, compiled to main.css
23 static/ assets, favicon.svg, og.png
24 assets/ logo sources; build.sh regenerates the icons
25
26DEPLOY
27 pushing main runs .githooks/pre-push, which builds with zola and
28 rsyncs public/ to homelab:/var/www/krz.sh/. the sync uses --delete,
29 so the remote mirrors public/ exactly.
30
31 git does not clone hooks. enable them once per checkout:
32
33 git config core.hooksPath .githooks
34
35 cloudflare fronts krz.sh and caches static assets for a year. asset
36 urls in templates/base.html are cachebusted so changes propagate;
37 anything else needs a manual purge.
38
39┌──────────────────────────────────────────────────────────────┐
40│ krz.sh │
41└──────────────────────────────────────────────────────────────┘