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

+9 -5
View File
@@ -15,7 +15,7 @@ DOCKER_RUN = docker run --rm \
-w /src
HUGO = $(DOCKER_RUN) $(HUGO_IMAGE)
.PHONY: help build serve check new clean theme-update
.PHONY: help build serve check new-project clean theme-update
help: ## Show this help
@grep -hE '^[a-z-]+:.*?## ' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-14s %s\n", $$1, $$2}'
@@ -31,7 +31,12 @@ check: build ## Build, then verify the generated site
@test -f public/index.html
@test -f public/sitemap.xml
@test -f public/robots.txt
@test -f public/index.xml
@test -f public/impressum/index.html
@test -f public/data_protection/index.html
@grep -q 'project-card' public/index.html \
|| { echo "FAIL: no project cards rendered (data/projects.yaml?)"; exit 1; }
@grep -q 'berlin-crime.poweronoff.click' public/index.html \
|| { echo "FAIL: Berlin Crime Stories missing from the landing page"; exit 1; }
@! grep -rl "Lorem Ipsum\|dolor sit amet\|TODO: body\.\|TODO: intro paragraph" public --include='*.html' \
|| { echo "FAIL: placeholder text found in public/"; exit 1; }
@! grep -rl "localhost:1313" public --include='*.html' \
@@ -39,9 +44,8 @@ check: build ## Build, then verify the generated site
@python3 scripts/check-links.py public
@echo "ok: site checks passed"
new: ## Create a draft post: make new slug=my-post title="My title"
@test -n "$(slug)" || { echo 'usage: make new slug=my-post [title="My title"]'; exit 2; }
@scripts/new-post.sh "$(slug)" "$(title)"
new-project: ## Show how to add a project
@echo 'Add an entry to data/projects.yaml (see the comment at the top), then run make check.'
clean: ## Remove build output and generated assets
@rm -rf public resources