2026-11-06 10:06:13 +01:00
|
|
|
|
# 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
|
|
|
|
|
|
|
2026-11-06 10:40:48 +01:00
|
|
|
|
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.
|
|
|
|
|
|
|
2026-11-06 10:43:32 +01:00
|
|
|
|
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.
|
2026-11-06 10:06:13 +01:00
|
|
|
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
|
|
2026-11-06 10:29:33 +01:00
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
make check HUGO_IMAGE=ghcr.io/gohugoio/hugo:v0.169.0
|
|
|
|
|
|
```
|
2026-11-06 10:06:13 +01:00
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
make build # production build into public/ (minified)
|
2026-11-06 10:40:48 +01:00
|
|
|
|
make serve # http://localhost:1313, live reload
|
|
|
|
|
|
make check # build + site assertions + internal link check
|
2026-11-06 10:06:13 +01:00
|
|
|
|
make clean # remove public/ and resources/
|
|
|
|
|
|
make theme-update # bump the PaperMod submodule, then review + `make check`
|
2026-11-06 10:40:48 +01:00
|
|
|
|
make new-project # reminder: add an entry to data/projects.yaml
|
2026-11-06 10:06:13 +01:00
|
|
|
|
```
|
|
|
|
|
|
|
2026-11-06 10:40:48 +01:00
|
|
|
|
`make check` is the definition of done. It fails if there is no project card,
|
2026-11-06 10:43:32 +01:00
|
|
|
|
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.
|
2026-11-06 10:06:13 +01:00
|
|
|
|
|
|
|
|
|
|
## Layout
|
|
|
|
|
|
|
|
|
|
|
|
| Path | Meaning |
|
|
|
|
|
|
| --- | --- |
|
2026-11-06 10:40:48 +01:00
|
|
|
|
| `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 card, order = page order |
|
|
|
|
|
|
| `layouts/shortcodes/projects.html` | Renders + validates the cards from the data file |
|
|
|
|
|
|
| `layouts/_partials/extend_head.html` | Card CSS, home page only |
|
2026-11-06 10:43:32 +01:00
|
|
|
|
| `content/about.md` | "Über mich" page, must stay (menu + landing page link to it) |
|
2026-11-06 10:40:48 +01:00
|
|
|
|
| `content/impressum.md`, `content/data_protection.md` | Legal pages, must stay |
|
2026-11-06 10:06:13 +01:00
|
|
|
|
| `layouts/shortcodes/obfuscate.html` | Base64 email obfuscation shortcode |
|
2026-11-06 10:40:48 +01:00
|
|
|
|
| `static/` | Files served at the site root (icons, images) |
|
2026-11-06 10:06:13 +01:00
|
|
|
|
| `themes/PaperMod` | Git submodule. **Never edit it.** Override from `layouts/` instead |
|
2026-11-06 10:40:48 +01:00
|
|
|
|
| `.gitea/workflows/build.yml` | Build, deploy (rsync), Telegram notification |
|
|
|
|
|
|
|
|
|
|
|
|
## Adding or changing a project
|
|
|
|
|
|
|
|
|
|
|
|
Edit `data/projects.yaml`. Fields:
|
|
|
|
|
|
|
|
|
|
|
|
- `name` — display name, required
|
|
|
|
|
|
- `url` — absolute `https://` URL, required
|
|
|
|
|
|
- `description` — one or two German sentences for the card, required
|
|
|
|
|
|
- `status` — short badge, e.g. `live`, `beta`, `in Arbeit` (optional)
|
|
|
|
|
|
- `tags` — short labels (optional)
|
2026-11-06 10:06:13 +01:00
|
|
|
|
|
2026-11-06 10:40:48 +01:00
|
|
|
|
Put new projects at the top. The shortcode calls `errorf` when a required field
|
|
|
|
|
|
is missing or the URL is not absolute, so a broken entry fails the build instead
|
|
|
|
|
|
of shipping an empty card. Do not create per-project Hugo pages — the card links
|
|
|
|
|
|
out to the project's own site. Card styling lives in
|
|
|
|
|
|
`layouts/_partials/extend_head.html`; keep using PaperMod CSS variables
|
|
|
|
|
|
(`--entry`, `--border`, `--secondary`, ...) so light/dark mode keeps working.
|
2026-11-06 10:06:13 +01:00
|
|
|
|
|
|
|
|
|
|
## Writing rules
|
|
|
|
|
|
|
2026-11-06 10:40:48 +01:00
|
|
|
|
- Copy is **German**, first person, short and factual. No marketing filler.
|
2026-11-06 10:43:32 +01:00
|
|
|
|
- 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.
|
2026-11-06 10:40:48 +01:00
|
|
|
|
- Email addresses in content use `{{< obfuscate >}}name@example.com{{< /obfuscate >}}`.
|
2026-11-06 10:46:34 +01:00
|
|
|
|
- **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 check` fails if such a link reaches `public/`. Links to
|
|
|
|
|
|
third-party repositories (e.g. PaperMod in the theme footer) are fine.
|
2026-11-06 10:40:48 +01:00
|
|
|
|
- The site is a single home page: do not add menu entries or sections without
|
|
|
|
|
|
being asked. Taxonomies are disabled in `config.yml` for that reason.
|
|
|
|
|
|
- `title` in config and in `content/_index.md` must stay identical, otherwise
|
|
|
|
|
|
the RSS channel title becomes "X on Y".
|
2026-11-06 10:06:13 +01:00
|
|
|
|
|
|
|
|
|
|
## Guardrails
|
|
|
|
|
|
|
|
|
|
|
|
- **Never push to `master`** unless the user explicitly asks for a deploy.
|
2026-11-06 10:40:48 +01:00
|
|
|
|
A push to `master` builds 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/` with `rsync -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;
|
2026-11-06 10:13:49 +01:00
|
|
|
|
`.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.
|
2026-11-06 10:32:52 +01:00
|
|
|
|
- The build must be warning-free. Deprecations coming from the theme are fixed
|
2026-11-06 10:40:48 +01:00
|
|
|
|
by `make theme-update`, never by editing the submodule; config deprecations
|
|
|
|
|
|
are fixed in `config.yml` (for example `locale`, not the retired
|
|
|
|
|
|
`languageCode`).
|
2026-11-06 10:06:13 +01:00
|
|
|
|
|
|
|
|
|
|
## Known issues / backlog
|
|
|
|
|
|
|
2026-11-06 10:40:48 +01:00
|
|
|
|
- No Open Graph image: `params.images` was removed because it pointed at 32 px
|
|
|
|
|
|
icons. Add a 1200×630 asset in `static/` and set `params.images` if social
|
|
|
|
|
|
previews matter.
|
|
|
|
|
|
- `static/` still holds artwork from the old blog (four Unsplash covers,
|
|
|
|
|
|
`me.png`, ~5 MB) that the landing page does not reference. Delete once the
|
|
|
|
|
|
author confirms it is no longer needed.
|
|
|
|
|
|
- Impressum and Datenschutz disagree on the street address (Wilsnacker Str. 6
|
|
|
|
|
|
vs. 39). Needs the author's confirmation; do not guess.
|
2026-11-06 10:43:32 +01:00
|
|
|
|
- `content/about.md` still ends with "Ich berichte in diesem Blog …", which no
|
|
|
|
|
|
longer matches a project landing page. Only the author should reword it.
|
2026-11-06 10:13:49 +01:00
|
|
|
|
- Deploy still uses password auth; switch to an SSH key and keep the rsync
|
|
|
|
|
|
`--delete` semantics.
|