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.
This commit is contained in:
morpheus committed 2026-11-06 10:40:48 +01:00
1 parent d59b91c4bd
commit ae2aab5753
15 files changed
+259 -390

No files matched your search

-55
View File
@@ -1,55 +0,0 @@
#!/usr/bin/env bash
# Create a Hugo page bundle under content/posts/<slug>/index.md as a draft.
# Usage: scripts/new-post.sh <slug> ["Title"]
set -euo pipefail
slug="${1:-}"
title="${2:-}"
if [[ -z "$slug" ]]; then
echo "usage: $(basename "$0") <slug> [\"Title\"]" >&2
exit 2
fi
if [[ ! "$slug" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]]; then
echo "slug must be lowercase kebab-case (letters, digits, single hyphens): $slug" >&2
exit 2
fi
dir="content/posts/$slug"
if [[ -e "$dir" ]]; then
echo "already exists: $dir" >&2
exit 1
fi
if [[ -z "$title" ]]; then
title="$(printf '%s' "$slug" | tr '-' ' ')"
fi
title="${title//\"/\\\"}"
# RFC3339 with a colon in the offset, e.g. 2025-11-06T09:57:00+01:00
now="$(date +%Y-%m-%dT%H:%M:%S%z | sed -E 's/([+-][0-9]{2})([0-9]{2})$/\1:\2/')"
mkdir -p "$dir"
cat > "$dir/index.md" <<EOF
---
title: "$title"
date: $now
draft: true
tags: []
categories: []
ShowToc: false
ShowBreadCrumbs: false
cover:
image: ""
alt: ""
caption: ""
relative: true
---
TODO: intro paragraph. It becomes the summary on list pages and the RSS description.
<!--more-->
TODO: body.
EOF
echo "created $dir/index.md (draft)"