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.
41 lines
1.6 KiB
HTML
41 lines
1.6 KiB
HTML
{{ define "main" }}
|
|
{{ $methode := . }}
|
|
<article class="method">
|
|
<header class="method__header">
|
|
<h1>{{ .Params.titel | default .Title }}</h1>
|
|
{{ with .Params.kurzbeschreibung }}<p class="method__lead">{{ . }}</p>{{ end }}
|
|
{{ with index hugo.Data.methoden $.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>
|
|
|
|
{{ partial "steckbrief-box.html" (dict "methode" $methode "zeigeKurzbeschreibung" false "zeigeLink" false) }}
|
|
|
|
{{/* Linked via Params.kennung, not via Params.titel or the folder
|
|
name/slug: the title may change at any time (see
|
|
the Manifest chapter on the project website), the kennung may not - Decap's relation widget
|
|
therefore stores the method's kennung in the variant's "methode"
|
|
field (value_field: "kennung" in admin/config.template.yml). */}}
|
|
{{ $varianten := partial "varianten-fuer-methode.html" . }}
|
|
{{ $varianten = sort $varianten "Params.untertitel" }}
|
|
|
|
{{ if eq (len $varianten) 1 }}
|
|
{{ with index $varianten 0 }}
|
|
{{ partial "diese-variante.html" . }}
|
|
<div class="method__body">
|
|
{{ .Content }}
|
|
</div>
|
|
{{ partial "attachments.html" . }}
|
|
{{ end }}
|
|
{{ else if gt (len $varianten) 1 }}
|
|
<section class="method__section">
|
|
<h2>Varianten</h2>
|
|
<div class="variant-grid">
|
|
{{ range $varianten }}{{ partial "variante-card.html" . }}{{ end }}
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
</article>
|
|
{{ end }}
|