krz.sh

what

source for krz.sh, the krz website. built with orgo.

develop

orgo serve content -o /tmp/krz-preview

open http://127.0.0.1:3000.

build

./build.sh

output goes to public/. build.sh runs orgo build --strict, then versions asset urls by content hash, sets the footer year and lists directory urls in sitemap.xml.

structure

content/         pages, one directory index per url; orgo.toml is the config
templates/       minijinja templates
templates/data/  the services list and unreleased apps, as template literals
static/          assets, main.css, favicon.svg, og.png
assets/          logo sources; assets/build.sh regenerates the icons

deploy

pushing main runs .githooks/pre-push, which runs build.sh and rsyncs public/ to homelab:/var/www/krz.sh/. the sync uses –delete, so the remote mirrors public/ exactly.

git does not clone hooks. enable them once per checkout:

git config core.hooksPath .githooks

cloudflare fronts krz.sh and caches static assets for a year. build.sh cachebusts the asset urls in templates/base.html so changes propagate; anything else needs a manual purge.

About

Org 54.7%CSS 21%HTML 19.7%Python 2.4%Shell 2.2%

1 contributorcmc

Clone

SSH
git clone ssh://git@gitbay.org/krz/krz.sh.git
HTTPS
git clone https://gitbay.org/krz/krz.sh.git