Commit Graph
12 Commits
Author SHA1 Message Date
morpheus 0654929789 Shorten the Berlin Crime Stories description and explain the automation
Build and deploy the poweronoff.click hugo / build (push) Successful in 47s
The 1.5-minute text was too long and its "Umsetzung" section described the
site's stack instead of the project. It now has ~165 words (~1 minute):

- Die Idee: the series, the characters, the real Berlin locations, daily
  release in German/English/Russian
- Die Umsetzung: the agentic pipeline that researches public police reports,
  writes the story, creates the illustration, translates it, tags the district
  and publishes it, including the automated pre-publication checks for hate
  speech, discrimination, calls to violence and identifiability of real people

No Hugo/Cloudflare/Apache details any more. AGENTS.md asks for ~150-250 words
and for "how the project works" rather than site infrastructure.
2026-11-07 08:10:44 +01:00
morpheus b094ec91f3 Give project entries an image and a full description
Build and deploy the poweronoff.click hugo / build (push) Successful in 46s
Each project on the landing page is now a two-column entry: an image from the
project on the left, a long description on the right (stacked on mobile).

- data/projects.yaml: new required `image` (path in assets/), optional
  `image_alt`/`image_credit`, and `description` is now Markdown covering the
  idea and the technical implementation (~350 words, 1.5-2 min)
- assets/projects/berlin-crime-stories.jpg: the project's Kalle-und-Leni
  illustration, resized to 1100 px in the repo and processed by Hugo into an
  800 px WebP (36 KB) at build time
- shortcode renders the description with Page.RenderString (paragraphs, bold),
  resizes the image, and fails the build when name/url/description/image is
  missing or the asset does not exist (no nil-pointer panic)
- extend_head.html: new entry layout using PaperMod variables, responsive below
  720 px
- make check asserts an entry with image is rendered and the text covers both
  "Die Idee" and "Die Umsetzung"; AGENTS.md/README document the new fields

Berlin Crime Stories description covers the series concept, Kalle & Leni, the
Berlin locations, the DE/EN/RU multilingual setup, Hugo templates, tags/RSS,
theme, Turnstile + Cloudflare Worker contact form, Apache + CSP and cookieless
analytics.
2026-11-07 08:04:31 +01:00
morpheus 9f71737703 Remove unused blog cover images
Build and deploy the poweronoff.click hugo / build (push) Successful in 40s
The four Unsplash covers from the old blog are no longer referenced anywhere
(the landing page has no images). Deleting them drops static/ from ~6 MB to
772 KB and public/ from 6.4 MB to 948 KB. AGENTS.md now only mentions me.png,
which the Über-mich page still uses.
2026-11-06 11:00:19 +01:00
morpheus a519d3379c Remove links to the author's GitHub profile
Build and deploy the poweronoff.click hugo / build (push) Successful in 44s
Drop the GitHub link from the landing page contact block (the only remaining
reference to github.com/poweronoff) and add a make-check guard that fails if it
ever reaches public/ again. AGENTS.md records the rule.

Only remaining github.com link in the output is PaperMod's own repository in the
theme footer attribution, which is not the author's profile.
2026-11-06 10:46:34 +01:00
morpheus 2a80de02bf Restore the "Über mich" page
Build and deploy the poweronoff.click hugo / build (push) Successful in 43s
Removing the blog should not have removed the author page. Bring back
content/about.md (unchanged), put "Über mich" back in the main menu, link it
from the landing page contact block, and make `make check` assert that
/about/index.html exists so it cannot silently disappear again. AGENTS.md now
lists it as a must-keep page next to Impressum and Datenschutz.
2026-11-06 10:43:32 +01:00
morpheus ae2aab5753 Turn the blog into a project landing page
Build and deploy the poweronoff.click hugo / build (push) Successful in 45s
The site is now a single page introducing Stan and listing his projects, with a
short description and a link for each. Blog posts, the about page, the post
archetype and the new-post helper are gone (git history keeps them). The
Impressum and Datenschutzerklärung stay: they are legally required and the
footer links to them.

Projects are data-driven:
- data/projects.yaml: name, url, description, optional status/tags
- layouts/shortcodes/projects.html: renders cards and fails the build when a
  required field is missing or the URL is not absolute
- layouts/_partials/extend_head.html: card CSS using PaperMod variables, so
  light/dark keeps working; no theme fork

First entry is Berlin Crime Stories, described from its own site (German crime
stories set in Berlin, published in German/English/Russian).

Config: site title and copy retargeted to projects, homeInfoParams/menu/social
icons/pagination/search output removed, taxonomies disabled (no posts), locale
set to de so html lang and og:locale are German. make check now also asserts
that the cards, the Berlin Crime Stories link and both legal pages exist, and
make new-project documents how to add one.
2026-11-06 10:40:48 +01:00
morpheus d59b91c4bd Fix build warnings: update PaperMod, drop the dead UA property
Build and deploy the poweronoff.click hugo / build (push) Successful in 42s
Hugo 0.158+ deprecated .Language.LanguageDirection and .Language.LanguageCode.
Both were used only by the theme (baseof.html, rss.xml, opengraph.html) and are
already fixed upstream, so bump PaperMod v8.0-139 -> v8.0-152 instead of
patching the submodule. Other changes in that range are theme improvements
(focus handling for in-page anchors, throttled scroll handlers, ISO date
titles); no site behaviour regressions in the generated HTML.

Universal Analytics (UA-179789773-1) stopped collecting data in 2023 and made
Hugo warn on every build. Analytics is now disabled with a comment showing how
to enable GA4; the dead gtag.js snippet is no longer shipped to visitors.

make check: 0 warnings, 0 errors.
2026-11-06 10:32:52 +01:00
morpheus c378349cff Build with the latest Hugo instead of a pinned release
Build and deploy the poweronoff.click hugo / build (push) Successful in 43s
Use ghcr.io/gohugoio/hugo:latest in CI and locally, so the site always builds
with the current Hugo release (currently v0.169.0). HUGO_IMAGE stays overridable
for debugging a version regression.

Trade-off: builds are no longer reproducible. If an upstream release breaks the
build, pin HUGO_IMAGE locally, then bump PaperMod with `make theme-update`.
2026-11-06 10:29:33 +01:00
morpheus b59b3bca78 Mirror public/ to the server with rsync --delete
Build and deploy the poweronoff.click hugo / build (push) Successful in 45s
The scp deploy used rm:false, so deleted pages and images stayed on the server
forever (e.g. /howto-work-with-stan/ still answered 200 after its removal).

Replace appleboy/scp-action with an rsync --delete --delay-updates step:
- the webroot becomes an exact mirror of public/, deletions propagate
- --delay-updates applies new files last, so a failed run never leaves a
  half-synced site (unlike a pre-clean rm -rf)
- .well-known/ is excluded so ACME challenges survive
- fails loudly if the transfer breaks, instead of silently leaving stale files

Still password auth via sshpass (secrets unchanged); switching to an SSH key is
the remaining follow-up. AGENTS.md updated accordingly.
2026-11-06 10:13:49 +01:00
morpheus 04e218d1ad Remove the "How to work with me" page
Build and deploy the poweronoff.click hugo / build (push) Successful in 40s
Drop content/howto-work-with-stan.md and its menu entry. The page was still a
placeholder ("under construction"). Note: the deploy step uses scp with
rm: false, so /howto-work-with-stan/ must also be deleted on the server
(/var/www/poweronoff.click/howto-work-with-stan).
2026-11-06 10:09:58 +01:00
morpheus 9611f10266 Catch new-post placeholders in make check
Build and deploy the poweronoff.click hugo / build (push) Successful in 1m24s
2026-11-06 10:06:13 +01:00
morpheus 9a02ee8111 Add agent tooling and restore the legal footer links
The footer override at layouts/partials/footer.html stopped being applied when
PaperMod moved its partials to layouts/_partials/: the Datenschutz and Impressum
links had silently vanished from the live site, and the copied theme JS was
stale. Drop the 135-line fork and get the links from params.footer.text, which
the theme renders itself.

Agentic setup:
- AGENTS.md: repo map, writing rules, guardrails, definition of done, backlog
- Makefile: dockerised build/serve/check/new/clean, pinned Hugo 0.169.0
- scripts/new-post.sh: creates a correct draft page bundle
- scripts/check-links.py: fails on unresolved internal links
- .editorconfig for consistent whitespace

CI/build:
- pin ghcr.io/gohugoio/hugo to v0.169.0 instead of :latest
- serialise runs per ref so deploys cannot race
- only send the Telegram notification for pushes

Also: trailing slash on the howto menu URL, ignore .hugo_build.lock, document the
dead Universal Analytics ID, and remove two unused duplicate images (304 KB).
2026-11-06 10:06:13 +01:00