Files
website/hugo/layouts/varianten/single.html
T
tobias 5e9da58d23 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.
2026-08-23 14:37:54 +02:00

43 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{ 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 }}