README.org
43 lines · 1009 bytes
1#+title: krz.sh
2
3* what
4source for krz.sh, the krz website. built with zola.
5
6* develop
7#+begin_src sh
8zola serve
9#+end_src
10
11open http://127.0.0.1:1111.
12
13* build
14#+begin_src sh
15zola build
16#+end_src
17
18output goes to public/.
19
20* structure
21#+begin_example
22config.toml site config
23content/ pages (home, services/, apps/, about/)
24templates/ tera templates
25sass/main.scss styles, compiled to main.css
26static/ assets, favicon.svg, og.png
27assets/ logo sources; build.sh regenerates the icons
28#+end_example
29
30* deploy
31pushing main runs .githooks/pre-push, which builds with zola and
32rsyncs public/ to homelab:/var/www/krz.sh/. the sync uses --delete,
33so the remote mirrors public/ exactly.
34
35git does not clone hooks. enable them once per checkout:
36
37#+begin_src sh
38git config core.hooksPath .githooks
39#+end_src
40
41cloudflare fronts krz.sh and caches static assets for a year. asset
42urls in templates/base.html are cachebusted so changes propagate;
43anything else needs a manual purge.