Vorlage fuer eigene Ableger-Installationen: Website + CMS-Code

Bereinigt von Pilot-Spezifika (echte Inhalte, Erzbistum-Hamburg-Bezuege,
Domain-Werte) - install.env und hugo.toml [params] mit generischen
Platzhaltern. docs/ komplett entfernt: Konzept, Manifest, Installations-
anleitungen leben jetzt auf der Projekt-Website statt redundant im Repo,
README verweist dorthin. Decap-CMS-Version von einer floatenden ^3.0.0
auf ein festes 3.15.1 gepinnt.
This commit is contained in:
2026-08-23 14:37:54 +02:00
commit 5e9da58d23
65 changed files with 5073 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
{{ define "main" }}
{{/* Deliberately empty: variants are detail pages per method and are only
linked from there (see hugo/layouts/_default/single.html), not via
their own overview page. A dedicated template instead of a
content/varianten/_index.md with "build.render: never", so that no
file sits in the content repo that Decap CMS would incorrectly list
as a (broken) entry in the variants collection - the same class of
bug as a README.md in the collection folder, see the concept chapter on the project website
Abschnitt 9. */}}
{{ end }}
+42
View File
@@ -0,0 +1,42 @@
{{ define "main" }}
{{/* Linked via Params.kennung, not via Params.titel or the folder
name/slug, see hugo/layouts/_default/single.html and
admin/config.template.yml. The steckbrief box and "Diese Variante" are
the same partials as on the method page (case: exactly one variant) -
see the project website (background/analysis notes) Teil 2.3. */}}
{{ $variante := . }}
{{ $methode := partial "methode-fuer-variante.html" . }}
<article class="method variant">
<header class="method__header">
{{ with $methode }}<p class="variant__back"><a href="{{ .RelPermalink }}">← {{ .Params.titel | default .Title }}</a></p>{{ end }}
<h1>{{ with $methode }}{{ .Params.titel | default .Title }} – {{ end }}{{ $variante.Params.untertitel }}</h1>
{{ with index hugo.Data.varianten $.File.ContentBaseName }}
<p class="method__updated">Erstellt: {{ .erstellt | time.AsTime | dateFormat "02.01.2006" }}</p>
<p class="method__updated">Zuletzt geändert: {{ .geaendert | time.AsTime | dateFormat "02.01.2006" }}</p>
{{ end }}
</header>
{{ with $methode }}
{{ partial "steckbrief-box.html" (dict "methode" . "zeigeKurzbeschreibung" true "zeigeLink" true) }}
{{ end }}
{{ partial "diese-variante.html" $variante }}
<div class="method__body">
{{ $variante.Content }}
</div>
{{ partial "attachments.html" $variante }}
{{ with $methode }}
{{ $andere := where (partial "varianten-fuer-methode.html" .) "Params.kennung" "ne" $variante.Params.kennung }}
{{ with $andere }}
<section class="method__section">
<h2>Andere Varianten dieser Methode</h2>
<div class="variant-grid">
{{ range . }}{{ partial "variante-card.html" . }}{{ end }}
</div>
</section>
{{ end }}
{{ end }}
</article>
{{ end }}
+6
View File
@@ -0,0 +1,6 @@
{{/* Served under "<variant-url>index.md" (see [outputFormats.MethodenSetMd]
and the cascade rule in hugo/hugo.toml) - the assembly logic lives
together with _default/single.md (method with exactly one variant) in
partials/methoden-set-dokument.html. Called with the respective
variant as context (section "varianten"). */ -}}
{{- partial "methoden-set-dokument.html" . -}}