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.
6.9 KiB
AGENTS.md
Instructions for coding agents working on this repository. Keep them in sync with the tooling; if a command below stops working, fix the command here first.
What this is
The single-page landing site behind https://poweronoff.click. It introduces Stan Nowogrudski and lists his projects with a short description and a link to each one. Hugo + PaperMod, German copy. Projects are data-driven, so adding a project is one YAML entry, not a new page.
The site used to be a blog. All blog posts were removed on purpose; they only
exist in git history. The "Über mich" page, the Impressum and the
Datenschutzerklärung stay — the menu and footer link to them. Do not recreate
content/posts, taxonomies or layouts/partials/footer.html unless asked.
Commands
Hugo is not installed on the host. Everything runs through the official
Docker image ghcr.io/gohugoio/hugo:latest, in the Makefile and in
.gitea/workflows/build.yml. Builds track the newest Hugo; if a new release
breaks the site, pin for the debugging session instead of committing a tag:
make check HUGO_IMAGE=ghcr.io/gohugoio/hugo:v0.169.0
make build # production build into public/ (minified)
make serve # http://localhost:1313, live reload
make check # build + site assertions + internal link check
make clean # remove public/ and resources/
make theme-update # bump the PaperMod submodule, then review + `make check`
make new-project # reminder: add an entry to data/projects.yaml
make check is the definition of done. It fails if no project entry or project
image is rendered, if an entry does not cover "Die Idee" and "Die Umsetzung",
if the Berlin Crime Stories entry disappears, if the Über mich / Impressum /
Datenschutz pages are missing, if placeholder text or a dev base URL leaks into
public/, or if an internal link does not resolve.
Layout
| Path | Meaning |
|---|---|
config.yml |
Site config: title, language, params, footer text, analytics |
content/_index.md |
Landing page copy (intro, {{< projects >}}, contact) |
data/projects.yaml |
Project list. One entry per project, order = page order |
layouts/shortcodes/projects.html |
Renders + validates the cards from the data file |
layouts/_partials/extend_head.html |
Project entry CSS, home page only |
assets/projects/ |
Project images, processed by Hugo into 800 px WebP |
content/about.md |
"Über mich" page, must stay (menu + landing page link to it) |
content/impressum.md, content/data_protection.md |
Legal pages, must stay |
layouts/shortcodes/obfuscate.html |
Base64 email obfuscation shortcode |
static/ |
Files served at the site root (icons, images) |
themes/PaperMod |
Git submodule. Never edit it. Override from layouts/ instead |
.gitea/workflows/build.yml |
Build, deploy (rsync), Telegram notification |
Adding or changing a project
Edit data/projects.yaml. Fields:
name— display name, requiredurl— absolutehttps://URL, requireddescription— Markdown, required: the idea and how the project works (for Berlin Crime Stories: how the stories are produced, not what the site is built with), ~150–250 words (about a minute), Germanimage— path insideassets/, e.g.projects/foo.jpg, required. Use an image from the project itself; Hugo resizes it to 800 px WebPimage_alt— short German alt text (strongly recommended)image_credit— small caption under the image (optional)status— short badge, e.g.live,beta,in Arbeit(optional)tags— short labels (optional)
Put new projects at the top. The shortcode calls errorf when a required field
is missing, the URL is not absolute, or the image does not exist under assets/,
so a broken entry fails the build instead of shipping a half-empty entry.
description uses | in YAML to keep blank lines; it is rendered as Markdown
(**bold**, paragraphs) inside the entry. Do not create per-project Hugo pages —
the entry links out to the project's own site. Styling lives in
layouts/_partials/extend_head.html; keep using PaperMod CSS variables
(--entry, --border, --secondary, ...) so light/dark mode keeps working.
Writing rules
- Copy is German, first person, short and factual. No marketing filler.
- Keep
content/about.md, the legal pages and the menu/footer links to them. A German site needs Impressum and Datenschutz; the about page is part of the site's identity. - Email addresses in content use
{{< obfuscate >}}name@example.com{{< /obfuscate >}}. - No links to the author's GitHub profile (
github.com/poweronoff) anywhere in content or config, and no GitHub social icon — the author asked for those to be removed.make checkfails if such a link reachespublic/. Links to third-party repositories (e.g. PaperMod in the theme footer) are fine. - The site is a single home page: do not add menu entries or sections without
being asked. Taxonomies are disabled in
config.ymlfor that reason. titlein config and incontent/_index.mdmust stay identical, otherwise the RSS channel title becomes "X on Y".
Guardrails
- Never push to
masterunless the user explicitly asks for a deploy. A push tomasterbuilds and replaces the live site. - Do not touch secrets or analytics. Analytics is off (the old Universal
Analytics property is dead); do not enable a tracker without discussing
consent first. CI secrets (
SSH_USERNAME,SSH_PASSWORD,SSH_PORT,TELEGRAM_TO,TELEGRAM_TOKEN) live in Gitea repository settings only. - Deploy mirrors
public/withrsync -rlptz --delete --delay-updates, so deleting a file also deletes it from the live site. Never place hand-made files under/var/www/poweronoff.click— they will be removed;.well-known/is excluded for ACME challenges. - Deploy still authenticates with a password via
sshpass. Moving to an SSH key is a known follow-up. - The build must be warning-free. Deprecations coming from the theme are fixed
by
make theme-update, never by editing the submodule; config deprecations are fixed inconfig.yml(for examplelocale, not the retiredlanguageCode).
Known issues / backlog
- No Open Graph image:
params.imageswas removed because it pointed at 32 px icons. Add a 1200×630 asset instatic/and setparams.imagesif social previews matter. static/me.png(~430 KB) is only used on the Über-mich page and is served unprocessed. Shrink it with an image tool if page weight matters.- Impressum and Datenschutz disagree on the street address (Wilsnacker Str. 6 vs. 39). Needs the author's confirmation; do not guess.
content/about.mdstill ends with "Ich berichte in diesem Blog …", which no longer matches a project landing page. Only the author should reword it.- Deploy still uses password auth; switch to an SSH key and keep the rsync
--deletesemantics.