README.org

44 lines · 1261 bytes

5 symbols in this file
 1#+title: krz.sh
 2
 3* what
 4source for krz.sh, the krz website. built with [[https://gitbay.org/krz/orgo][orgo]].
 5
 6* develop
 7#+begin_src sh
 8orgo serve content -o /tmp/krz-preview
 9#+end_src
10
11open http://127.0.0.1:3000.
12
13* build
14#+begin_src sh
15./build.sh
16#+end_src
17
18output goes to public/. build.sh runs =orgo build --strict=, then
19versions asset urls by content hash, sets the footer year and lists
20directory urls in sitemap.xml.
21
22* structure
23#+begin_example
24content/         pages, one directory index per url; orgo.toml is the config
25templates/       minijinja templates
26templates/data/  the services list and unreleased apps, as template literals
27static/          assets, main.css, favicon.svg, og.png
28assets/          logo sources; assets/build.sh regenerates the icons
29#+end_example
30
31* deploy
32pushing main runs .githooks/pre-push, which runs build.sh and
33rsyncs public/ to homelab:/var/www/krz.sh/. the sync uses --delete,
34so the remote mirrors public/ exactly.
35
36git does not clone hooks. enable them once per checkout:
37
38#+begin_src sh
39git config core.hooksPath .githooks
40#+end_src
41
42cloudflare fronts krz.sh and caches static assets for a year. build.sh
43cachebusts the asset urls in templates/base.html so changes propagate;
44anything else needs a manual purge.