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