Give project entries an image and a full description
Build and deploy the poweronoff.click hugo / build (push) Successful in 46s
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.
This commit is contained in:
1 parent
9f71737703
commit
b094ec91f3
7 files changed
+158
-59
No files matched your search
@@ -35,7 +35,8 @@ 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 there is no project card,
|
||||
`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.
|
||||
@@ -46,9 +47,10 @@ Datenschutz pages are missing, if placeholder text or a dev base URL leaks into
|
||||
| --- | --- |
|
||||
| `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 |
|
||||
| `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` | Card CSS, home page only |
|
||||
| `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 |
|
||||
@@ -62,14 +64,21 @@ Edit `data/projects.yaml`. Fields:
|
||||
|
||||
- `name` — display name, required
|
||||
- `url` — absolute `https://` URL, required
|
||||
- `description` — one or two German sentences for the card, required
|
||||
- `description` — long-form Markdown, required: **the idea and the technical
|
||||
implementation**, ~250–400 words (1–2 minutes), German
|
||||
- `image` — path inside `assets/`, e.g. `projects/foo.jpg`, required. Use an
|
||||
image from the project itself; Hugo resizes it to 800 px WebP
|
||||
- `image_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 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
|
||||
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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user