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
@@ -0,0 +1,18 @@
{{/* We resolve image paths in variant content (![](datei.svg)) via the
page resources of the page the content belongs to (the variant) - not
the page that embeds .Content. With only one variant, the method page
(hugo/layouts/_default/single.html) embeds this content directly; a
raw relative path would resolve against the wrong URL there (the file
lives in the variant's bundle folder, not the method's). An absolute
permalink makes the embed location-independent. */}}
{{- $resource := "" }}
{{- if not (urls.Parse .Destination).IsAbs }}
{{- with .Page.Resources.GetMatch .Destination }}
{{- $resource = . }}
{{- end }}
{{- end }}
{{- if $resource }}
<img src="{{ $resource.Permalink }}" alt="{{ .Text }}"{{ with .Title }} title="{{ . }}"{{ end }}>
{{- else }}
<img src="{{ .Destination }}" alt="{{ .Text }}"{{ with .Title }} title="{{ . }}"{{ end }}>
{{- end }}
+191
View File
@@ -0,0 +1,191 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Locale | default "de" }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ $seiten_titel := .Params.titel | default .Title }}
{{ $beschreibung := .Params.kurzbeschreibung | default .Site.Params.beschreibung }}
{{ if eq .Section "varianten" }}
{{ with partial "methode-fuer-variante.html" . }}
{{ $seiten_titel = printf "%s – %s" (.Params.titel | default .Title) $.Params.untertitel }}
{{ $beschreibung = .Params.kurzbeschreibung | default $.Site.Params.beschreibung }}
{{ end }}
{{ end }}
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ $seiten_titel }} · {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.beschreibung }}{{ else }}{{ $beschreibung }}{{ end }}">
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
{{/* SVG first: has dark-mode switching built in (@media
prefers-color-scheme within the file itself) and is preferred by
current browsers. The PNG variants below are the fallback for
browsers/contexts without SVG favicon support - since PNGs can't do
@media queries themselves, there's a separate light/dark pair for
them with media="(prefers-color-scheme: ...)" on the <link> itself
(introduced by Safari, meanwhile more widely supported). Without
this, the PNG fallback would be low-contrast in dark browser chrome
(dark green icon on a transparent background). */}}
<link rel="icon" href="{{ "favicon.svg" | relURL }}" type="image/svg+xml">
<link rel="icon" href="{{ "favicon-32x32.png" | relURL }}" sizes="32x32" type="image/png" media="(prefers-color-scheme: light)">
<link rel="icon" href="{{ "favicon-16x16.png" | relURL }}" sizes="16x16" type="image/png" media="(prefers-color-scheme: light)">
<link rel="icon" href="{{ "favicon-32x32-dark.png" | relURL }}" sizes="32x32" type="image/png" media="(prefers-color-scheme: dark)">
<link rel="icon" href="{{ "favicon-16x16-dark.png" | relURL }}" sizes="16x16" type="image/png" media="(prefers-color-scheme: dark)">
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | relURL }}">
{{ with .Site.Params.farbe_primaer }}
<style>:root{ --color-accent: {{ . }}; }</style>
{{ end }}
</head>
<body>
<header class="site-header">
<a class="site-title" href="{{ "/" | relURL }}">
<img src="{{ "img/logo.svg" | relURL }}" alt="" class="site-logo" width="32" height="32">
{{ .Site.Title }}
</a>
<div class="site-header__actions">
{{/* On a wide screen, a real, always-visible search bar; on narrow
screens it expands via the button. Deliberately NO <details>
here AND for "Stöbern" (browse) (unlike an earlier version):
<details> internally collapses to 0×0 in current Chromium
versions as soon as you try to override the closed state via CSS
(reproduced live) - and has no native "expand on hover" anyway.
Instead both are a button + CSS-driven panel, visible via hover
(only on pointer devices with hover, see style.css), keyboard
focus, or click/tap - click/tap for touch devices without hover,
see inline script below. Also works completely without
JavaScript: a real <form method="get">, submitting navigates to
/?q=... - filter.js prevents that only on the homepage itself
and filters live instead, see there. */}}
<div class="header-search" id="header-search">
<button type="button" class="header-toggle" id="header-search-toggle" aria-expanded="false" aria-controls="header-search-form">Suchen</button>
{{/* Target since the introduction of Pagefind full-text search:
/suche/ instead of / - filter.js still only prevents
submission on the homepage itself (that's where the fast
metadata filtering over the cards lives, see there); on every
other page a real <form method="get"> now navigates to the
full-text search instead of the weaker metadata search on the
homepage. */}}
<form class="header-search__form" id="header-search-form" action="{{ "/suche/" | relURL }}" method="get" role="search">
<label for="header-search-input" class="visually-hidden">Suchen</label>
<input type="search" name="q" id="header-search-input" placeholder="Titel, Beschreibung, Tags …" autocomplete="off">
</form>
</div>
{{/* "Stöbern" (browse) always expands regardless of screen width -
the same four overview pages as previously in the main
navigation. */}}
<div class="header-browse" id="header-browse">
<button type="button" class="header-toggle" id="header-browse-toggle" aria-expanded="false" aria-controls="header-browse-nav">Stöbern</button>
<nav class="header-browse__nav" id="header-browse-nav">
<a href="{{ "/zielgruppe/" | relURL }}">Zielgruppen</a>
<a href="{{ "/kompetenzbereich/" | relURL }}">Kompetenzbereiche</a>
<a href="{{ "/kategorie/" | relURL }}">Kategorien</a>
<a href="{{ "/tags/" | relURL }}">Tags</a>
</nav>
</div>
{{/* Standalone, static app outside of Hugo (like /admin/, see
hugo/hugo.toml module.mounts) - hence a plain link instead of a
relURL reference to a Hugo page. A user-visible feature, so it
lives here in the header next to Suchen/Stöbern, not in the
footer next to Redaktion/Status (see the Methoden-Set chapter on the project website). */}}
<a href="/methoden-set/" class="header-toggle header-toggle--link">Methoden-Set</a>
</div>
</header>
<script>
// Runs on every page (unlike filter.js, which exits immediately if
// #method-grid is missing) - drives click/tap toggling for
// "Suchen"/"Stöbern" (hover itself is plain CSS, see style.css) and
// keeps the search open once something has been entered, even after
// the mouse moves away again or the field loses focus.
(function () {
function wireToggle(wrapperId, toggleId, staysOpen) {
var wrapper = document.getElementById(wrapperId);
var toggle = document.getElementById(toggleId);
if (!wrapper || !toggle) return;
function setOpen(open) {
wrapper.classList.toggle("is-open", open);
toggle.setAttribute("aria-expanded", String(open));
}
toggle.addEventListener("click", function () {
setOpen(!wrapper.classList.contains("is-open"));
});
document.addEventListener("click", function (event) {
if (wrapper.contains(event.target)) return;
if (staysOpen && staysOpen()) return;
setOpen(false);
});
return setOpen;
}
var searchInput = document.getElementById("header-search-input");
var searchHasValue = function () {
return !!(searchInput && searchInput.value.trim());
};
var setSearchOpen = wireToggle("header-search", "header-search-toggle", searchHasValue);
wireToggle("header-browse", "header-browse-toggle", null);
if (searchInput && setSearchOpen) {
searchInput.addEventListener("input", function () {
setSearchOpen(searchHasValue());
});
}
})();
</script>
{{/* data-pagefind-body limits the area indexed by Pagefind to the actual
page content - without this attribute, Pagefind would also index the
header (logo, "Suchen"/"Stöbern", navigation) and footer on every
single page, and every search hit would additionally carry these
terms in the index. This lives here in baseof.html, so it applies
equally to every page - no risk that individual pages drop out of
the index because of it (per Pagefind's own docs: "if
data-pagefind-body appears anywhere on the site, pages without this
attribute are no longer indexed at all"). */}}
<main class="site-main" data-pagefind-body>
{{ block "main" . }}{{ end }}
</main>
<footer class="site-footer">
<div class="site-footer__grid">
<div class="site-footer__col">
<h2 class="site-footer__heading">Ableger</h2>
<p>Ableger ist ein Framework zur Sammlung und Entwicklung von Methoden.</p>
<ul class="site-footer__links">
{{ with .Site.Params.website_repo_url }}<li><a href="{{ . }}">Ableger-Projekt</a></li>{{ else }}<li><span class="site-footer__placeholder" title="Folgt">Ableger-Projekt</span></li>{{ end }}
<li><a href="https://gohugo.io">Hugo</a></li>
<li><a href="https://decapcms.org">Decap CMS</a></li>
<li><a href="https://pagefind.app">Pagefind</a></li>
<li><a href="https://pandoc.org">Pandoc</a></li>
</ul>
</div>
<div class="site-footer__col">
<h2 class="site-footer__heading">Instanz</h2>
<ul class="site-footer__links">
{{ with .Site.Params.methoden_repo_url }}<li><a href="{{ . }}">Quell-Repository</a></li>{{ end }}
{{ if .Site.Params.betreiber_url }}<li>Betreiber: <a href="{{ .Site.Params.betreiber_url }}">{{ .Site.Params.betreiber_name }}</a></li>{{ else }}<li>Betreiber: {{ .Site.Params.betreiber_name }}</li>{{ end }}
{{ with hugo.Data.ableger }}<li>Manifest-Version {{ .protokoll_version }}</li>{{ end }}
{{/* Current commit of THIS website repo, not a frozen "forked
from template version X" marker - see
scripts/generate-version-info.sh. Deliberately separate from
"Manifest-Version" above: that one is a rarely-changing
structural compatibility marker for the data model, this one
changes with every deploy and reflects the code actually
running here (still identical to the template initially,
diverges once a fork develops further on its own). */}}
{{ with hugo.Data.website }}<li>Stand: {{ .commit }} ({{ .datum | time.AsTime | dateFormat "02.01.2006" }})</li>{{ end }}
</ul>
</div>
<div class="site-footer__col">
<ul class="site-footer__links">
{{ with .Site.Params.impressum_url }}<li><a href="{{ . }}">Impressum</a></li>{{ else }}<li><span class="site-footer__placeholder" title="Folgt">Impressum</span></li>{{ end }}
{{ with .Site.Params.datenschutz_url }}<li><a href="{{ . }}">Datenschutz</a></li>{{ else }}<li><span class="site-footer__placeholder" title="Folgt">Datenschutz</span></li>{{ end }}
<li><a href="{{ "/admin/" | relURL }}">Redaktion</a></li>
<li><a href="{{ "/admin/status/" | relURL }}">Status</a></li>
</ul>
</div>
</div>
</footer>
<script src="{{ "js/filter.js" | relURL }}" defer></script>
</body>
</html>
+11
View File
@@ -0,0 +1,11 @@
{{ define "main" }}
<section class="method-list">
<h1>{{ .Title }}</h1>
{{ with .Content }}<div class="taxonomy-intro">{{ . }}</div>{{ end }}
<div class="method-grid">
{{ range sort .Pages "Params.titel" }}
{{ partial "method-card.html" . }}
{{ end }}
</div>
</section>
{{ end }}
+40
View File
@@ -0,0 +1,40 @@
{{ 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 }}
+27
View File
@@ -0,0 +1,27 @@
{{/* Served under "<method-url>index.md" (see [outputFormats.MethodenSetMd]
and the second cascade rule in hugo/hugo.toml), for the methoden-set
tool (methoden-set/, see the Methoden-Set chapter on the project website). Same "one variant ->
embed" logic as _default/single.html (see there): if the method has
exactly one variant, this URL returns exactly the same document as
the variant URL itself (partials/methoden-set-dokument.html) - methods
with only one variant otherwise have no URL usable via the tool,
because the HTML page embeds the variant text directly, without
showing a visible link to the actual variant URL. With 0 or several
variants, a short notice document instead of a generic 404 in the
tool - see its error messages in methoden-set/app.js. */}}
{{- $methode := . -}}
{{- $varianten := partial "varianten-fuer-methode.html" . -}}
{{- if eq (len $varianten) 1 -}}
{{- partial "methoden-set-dokument.html" (index $varianten 0) -}}
{{- else -}}
---
titel: {{ (.Params.titel | default .Title) | jsonify }}
quelle: {{ .Permalink | jsonify }}
fehler: {{ if gt (len $varianten) 1 }}"mehrere_varianten"{{ else }}"keine_variante"{{ end }}
---
{{ if gt (len $varianten) 1 -}}
Diese Methode hat mehrere Varianten. Bitte auf der Methoden-Seite die gewünschte Variante öffnen und deren eigenen Link einfügen.
{{- else -}}
Diese Methode hat noch keine veröffentlichte Variante.
{{- end }}
{{- end -}}
+10
View File
@@ -0,0 +1,10 @@
{{ define "main" }}
<section class="taxonomy-overview">
<h1>{{ .Title }}</h1>
<ul class="filter-list">
{{ range .Pages }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> ({{ len .Pages }})</li>
{{ end }}
</ul>
</section>
{{ end }}
+135
View File
@@ -0,0 +1,135 @@
{{ define "main" }}
{{/* Variants (section "varianten") are detail pages per method, not their
own methods - deliberately excluded everywhere here, otherwise they'd
show up twice in search/filter/card list. Methods themselves live at
the content root (section ""), see hugo/hugo.toml. */}}
{{ $methodenPages := where site.RegularPages "Section" "" }}
{{/* Duration/group size/license no longer sit directly on the method since
variants were introduced, but are aggregated per method from its
variants into a range/set (partials/variantenspanne.html) - here
additionally aggregated across all methods, for the outer bounds of
the filter sliders resp. the license filter list. */}}
{{ $dauerMin := 0 }}{{ $dauerMax := 0 }}{{ $dauerSeen := false }}
{{ $groesseMin := 0 }}{{ $groesseMax := 0 }}{{ $groesseSeen := false }}
{{ $lizenzen := slice }}
{{ range $methodenPages }}
{{/* partialCached with .RelPermalink as the key: method-card.html below
computes the same partial for the same page again - caching avoids
running the variantenspanne.html aggregation twice per method. */}}
{{ $spanne := partialCached "variantenspanne.html" . .RelPermalink }}
{{ $lizenzen = $lizenzen | append $spanne.lizenzen }}
{{ if $spanne.dauerSeen }}
{{ if $dauerSeen }}
{{ if lt $spanne.dauerMin $dauerMin }}{{ $dauerMin = $spanne.dauerMin }}{{ end }}
{{ if gt $spanne.dauerMax $dauerMax }}{{ $dauerMax = $spanne.dauerMax }}{{ end }}
{{ else }}
{{ $dauerMin = $spanne.dauerMin }}{{ $dauerMax = $spanne.dauerMax }}{{ $dauerSeen = true }}
{{ end }}
{{ end }}
{{ if $spanne.groesseSeen }}
{{ if $groesseSeen }}
{{ if lt $spanne.groesseMin $groesseMin }}{{ $groesseMin = $spanne.groesseMin }}{{ end }}
{{ if gt $spanne.groesseMax $groesseMax }}{{ $groesseMax = $spanne.groesseMax }}{{ end }}
{{ else }}
{{ $groesseMin = $spanne.groesseMin }}{{ $groesseMax = $spanne.groesseMax }}{{ $groesseSeen = true }}
{{ end }}
{{ end }}
{{ end }}
{{ $lizenzen = $lizenzen | uniq | sort }}
<section class="toolbar" aria-label="Filter">
<p id="result-count" role="status"></p>
{{/* Bridge to the Pagefind full-text search (layouts/suche/list.html):
the search up here only filters the cards' title/description/tags,
not the full variant text. filter.js keeps the href live in sync
with the current search field content. */}}
<a class="search-more-link" id="search-more-link" href="{{ "/suche/" | relURL }}">Volltextsuche über alle Inhalte</a>
<details class="filter-panel" id="filter-panel">
<summary>Filter</summary>
<div class="filter-panel__body">
<fieldset class="filter-group">
<legend>Zielgruppe</legend>
{{ range $term, $pages := .Site.Taxonomies.zielgruppe }}
<label class="filter-checkbox">
<input type="checkbox" data-facet="zielgruppe" value="{{ $term }}">
{{ $term | title }} <span class="filter-count">({{ len $pages }})</span>
</label>
{{ end }}
</fieldset>
<fieldset class="filter-group">
<legend>Kompetenzbereich</legend>
{{ range $term, $pages := .Site.Taxonomies.kompetenzbereich }}
<label class="filter-checkbox">
<input type="checkbox" data-facet="kompetenzbereich" value="{{ $term }}">
{{ $term | title }} <span class="filter-count">({{ len $pages }})</span>
</label>
{{ end }}
</fieldset>
<fieldset class="filter-group">
<legend>Kategorie</legend>
{{ range $term, $pages := .Site.Taxonomies.kategorie }}
<label class="filter-checkbox">
<input type="checkbox" data-facet="kategorie" value="{{ $term }}">
{{ $term | title }} <span class="filter-count">({{ len $pages }})</span>
</label>
{{ end }}
</fieldset>
{{ if gt (len $lizenzen) 1 }}
<fieldset class="filter-group">
<legend>Lizenz</legend>
{{ range $lizenzen }}
<label class="filter-checkbox">
<input type="checkbox" data-facet="lizenz" value="{{ . }}">
{{ . }}
</label>
{{ end }}
</fieldset>
{{ end }}
{{ if $dauerSeen }}
<div class="filter-group filter-range" data-range-facet="dauer" data-min="{{ $dauerMin }}" data-max="{{ $dauerMax }}">
<div class="filter-range__label">
Dauer: <output data-range-output-min>{{ $dauerMin }}</output>–<output data-range-output-max>{{ $dauerMax }}</output> Min.
</div>
<div class="filter-range__slider">
<div class="filter-range__track"></div>
<div class="filter-range__fill" data-range-fill></div>
<input type="range" min="{{ $dauerMin }}" max="{{ $dauerMax }}" value="{{ $dauerMin }}" data-range-min>
<input type="range" min="{{ $dauerMin }}" max="{{ $dauerMax }}" value="{{ $dauerMax }}" data-range-max>
</div>
</div>
{{ end }}
{{ if $groesseSeen }}
<div class="filter-group filter-range" data-range-facet="groesse" data-min="{{ $groesseMin }}" data-max="{{ $groesseMax }}">
<div class="filter-range__label">
Gruppengröße: <output data-range-output-min>{{ $groesseMin }}</output>–<output data-range-output-max>{{ $groesseMax }}</output>
</div>
<div class="filter-range__slider">
<div class="filter-range__track"></div>
<div class="filter-range__fill" data-range-fill></div>
<input type="range" min="{{ $groesseMin }}" max="{{ $groesseMax }}" value="{{ $groesseMin }}" data-range-min>
<input type="range" min="{{ $groesseMin }}" max="{{ $groesseMax }}" value="{{ $groesseMax }}" data-range-max>
</div>
</div>
{{ end }}
<button type="button" id="filter-reset">Filter zurücksetzen</button>
</div>
</details>
</section>
<section class="method-list" id="ergebnisse">
<div class="method-grid" id="method-grid">
{{ range sort $methodenPages "Params.titel" }}
{{ partial "method-card.html" . }}
{{ end }}
</div>
<p id="no-results" hidden>Keine Methoden gefunden. Filter anpassen oder Suchbegriff ändern.</p>
</section>
{{ end }}
+5
View File
@@ -0,0 +1,5 @@
{{- /* Site metadata for admin/index.html and admin/status/index.html (see
hugo.toml, outputFormats.SiteMeta) - these two files are plain static
HTML without Hugo templating and load this file via fetch(), so the
site title isn't hardcoded a second time. */ -}}
{{- dict "title" .Site.Title | jsonify -}}
+16
View File
@@ -0,0 +1,16 @@
{{/* Attachments belong to the variant (page resources in the respective
bundle folder), not the method - called with the respective variant
page as context. */}}
{{ with .Params.anhaenge }}
<section class="method__section">
<h2>Anhänge</h2>
<ul class="method__attachments">
{{ range . }}
{{ $anhang := . }}
{{ with $.Resources.GetMatch $anhang.datei }}
<li><a href="{{ .RelPermalink }}">{{ $anhang.beschreibung | default $anhang.datei }}</a></li>
{{ end }}
{{ end }}
</ul>
</section>
{{ end }}
+33
View File
@@ -0,0 +1,33 @@
{{/* "Diese Variante" (this variant) - all variant-specific details,
deliberately NOT in the steckbrief box (see
partials/steckbrief-box.html), so the box always looks the same
regardless of the number of variants. The variant description is
deliberately shown first, right under the heading. Shared between the
method page (when the method has exactly one variant) and the variant
page itself - see the project website (background/analysis notes) Teil 2.3. Called with
the respective variant as context. */}}
{{ $variante := . }}
<section class="method__section">
<h2>Diese Variante</h2>
{{ with $variante.Params.varianten_beschreibung }}<p class="method__lead">{{ . }}</p>{{ end }}
<dl class="method__meta-inline">
{{ if isset $variante.Params "dauer_minuten" }}<div><dt>Dauer</dt><dd>{{ $variante.Params.dauer_minuten }} Minuten</dd></div>{{ end }}
{{ if or (isset $variante.Params "gruppengroesse_min") (isset $variante.Params "gruppengroesse_max") }}
<div><dt>Gruppengröße</dt><dd>{{ if eq $variante.Params.gruppengroesse_min $variante.Params.gruppengroesse_max }}{{ $variante.Params.gruppengroesse_min }}{{ else }}{{ $variante.Params.gruppengroesse_min }}–{{ $variante.Params.gruppengroesse_max }}{{ end }}</dd></div>
{{ end }}
{{ with $variante.Params.lizenz }}<div><dt>Lizenz</dt><dd>{{ . }}</dd></div>{{ end }}
{{ with $variante.Params.kennung }}<div><dt>ID</dt><dd>{{ . }}</dd></div>{{ end }}
</dl>
{{ with $variante.Params.material }}
<p class="method__label">Material</p>
<ul>{{ range . }}<li>{{ . }}</li>{{ end }}</ul>
{{ end }}
{{ with $variante.Params.autoren }}
<p class="method__label">Autor:innen</p>
<ul>{{ range . }}<li>{{ . }}</li>{{ end }}</ul>
{{ end }}
{{ with $variante.Params.quellen }}
<p class="method__label">Quellen</p>
<ul>{{ range . }}<li>{{ . }}</li>{{ end }}</ul>
{{ end }}
</section>
+65
View File
@@ -0,0 +1,65 @@
{{ $p := . }}
{{ $spanne := partialCached "variantenspanne.html" $p $p.RelPermalink }}
{{ $searchbits := slice ($p.Params.titel | default $p.Title) }}
{{ with $p.Params.kurzbeschreibung }}{{ $searchbits = $searchbits | append . }}{{ end }}
{{ with $p.Params.verwendungsmoeglichkeit }}{{ $searchbits = $searchbits | append . }}{{ end }}
{{ with $p.Params.zielgruppe }}{{ $searchbits = $searchbits | append (delimit . " ") }}{{ end }}
{{ with $p.Params.kompetenzbereich }}{{ $searchbits = $searchbits | append (delimit . " ") }}{{ end }}
{{ with $p.Params.kategorie }}{{ $searchbits = $searchbits | append (delimit . " ") }}{{ end }}
{{ with $p.Params.tags }}{{ $searchbits = $searchbits | append (delimit . " ") }}{{ end }}
{{ with $spanne.lizenzen }}{{ $searchbits = $searchbits | append (delimit . " ") }}{{ end }}
{{ $searchtext := delimit $searchbits " " | lower }}
<article class="method-card"
data-search="{{ $searchtext }}"
data-zielgruppe="{{ with $p.Params.zielgruppe }}{{ delimit . "|" }}{{ end }}"
data-kompetenzbereich="{{ with $p.Params.kompetenzbereich }}{{ delimit . "|" }}{{ end }}"
data-kategorie="{{ with $p.Params.kategorie }}{{ delimit . "|" }}{{ end }}"
data-lizenz="{{ with $spanne.lizenzen }}{{ delimit . "|" }}{{ end }}"
data-dauer-min="{{ if $spanne.dauerSeen }}{{ $spanne.dauerMin }}{{ end }}"
data-dauer-max="{{ if $spanne.dauerSeen }}{{ $spanne.dauerMax }}{{ end }}"
data-gruppengroesse-min="{{ if $spanne.groesseSeen }}{{ $spanne.groesseMin }}{{ end }}"
data-gruppengroesse-max="{{ if $spanne.groesseSeen }}{{ $spanne.groesseMax }}{{ end }}"
>
<h3><a href="{{ $p.RelPermalink }}">{{ $p.Params.titel | default $p.Title }}</a></h3>
{{ with $p.Params.kurzbeschreibung }}<p class="method-card__desc">{{ . }}</p>{{ end }}
<dl class="method-card__meta">
{{ if $spanne.dauerSeen }}
<div><dt>Dauer</dt><dd>{{ if eq $spanne.dauerMin $spanne.dauerMax }}{{ $spanne.dauerMin }}{{ else }}{{ $spanne.dauerMin }}–{{ $spanne.dauerMax }}{{ end }} Min.</dd></div>
{{ end }}
{{ if $spanne.groesseSeen }}
<div><dt>Gruppengröße</dt><dd>{{ if eq $spanne.groesseMin $spanne.groesseMax }}{{ $spanne.groesseMin }}{{ else }}{{ $spanne.groesseMin }}–{{ $spanne.groesseMax }}{{ end }}</dd></div>
{{ end }}
</dl>
{{ with $p.Params.zielgruppe }}
<div class="method-card__group">
<p class="method-card__label">Zielgruppe</p>
<ul class="method-card__tags method-card__tags--zielgruppe">
{{ range . }}<li><button type="button" class="facet-chip" data-facet="zielgruppe" data-value="{{ . }}">{{ . }}</button></li>{{ end }}
</ul>
</div>
{{ end }}
{{ with $p.Params.kompetenzbereich }}
<div class="method-card__group">
<p class="method-card__label">Kompetenzbereich</p>
<ul class="method-card__tags method-card__tags--kompetenz">
{{ range . }}<li><button type="button" class="facet-chip" data-facet="kompetenzbereich" data-value="{{ . }}">{{ . }}</button></li>{{ end }}
</ul>
</div>
{{ end }}
{{ with $p.Params.kategorie }}
<div class="method-card__group">
<p class="method-card__label">Kategorie</p>
<ul class="method-card__tags method-card__tags--kategorie">
{{ range . }}<li><button type="button" class="facet-chip" data-facet="kategorie" data-value="{{ . }}">{{ . }}</button></li>{{ end }}
</ul>
</div>
{{ end }}
{{ with $p.Params.tags }}
<div class="method-card__group">
<p class="method-card__label">Tags</p>
<ul class="method-card__tags">
{{ range . }}<li><button type="button" class="facet-chip facet-chip--tag" data-facet="search" data-value="{{ . }}">{{ . }}</button></li>{{ end }}
</ul>
</div>
{{ end }}
</article>
@@ -0,0 +1,7 @@
{{/* Returns the method page belonging to the variant (or nil, if none is
found - should practically never happen due to Regel 1 in
scripts/validate.rb). Called with the respective variant as context.
Linked via Params.kennung, not via Params.titel or the filename/slug,
see admin/config.template.yml and the Manifest chapter on the project website. */}}
{{ $matches := where site.RegularPages "Params.kennung" .Params.methode }}
{{ if $matches }}{{ return (index $matches 0) }}{{ end }}
@@ -0,0 +1,85 @@
{{/* Self-describing markdown document for a variant, for the methoden-set
tool (methoden-set/, see the Methoden-Set chapter on the project website). Shared by
varianten/single.md (own variant URL) and _default/single.md (method
URL, when the method has exactly one variant - the same "one variant
-> embed" logic as _default/single.html, see there) - methods with
only one variant otherwise have no URL usable via the tool, because
their HTML page embeds the variant text directly, without showing a
visible link to the actual variant URL. Deliberately ONLY a minimal
YAML header (titel, quelle) - the client only needs the title from it
for the sort list and the source as a validation anchor; authors/
license/origin are instead written as readable text directly into the
body (a prose citation at the end), no second metadata structure to
parse in JS needed for that - assembly happens here in Hugo, not in
the client. Fields/order follow partials/steckbrief-box.html and
partials/diese-variante.html, just rendered as markdown instead of
HTML. Called with the respective variant as context. */}}
{{- $variante := . -}}
{{- $methode := partial "methode-fuer-variante.html" . -}}
{{- $methodenTitel := "" -}}
{{- with $methode }}{{ $methodenTitel = (.Params.titel | default .Title) }}{{ end -}}
{{- $titel := printf "%s – %s" $methodenTitel $variante.Params.untertitel -}}
{{/* Embedded images (![](datei.svg)) are still relative in the raw
markdown - unlike .Content (see _markup/render-image.html), Hugo does
not apply its render hooks to .RawContent. So for every page resource
of the variant, the filename in the parenthesized part of a markdown
image reference is replaced here by the absolute permalink URL, so the
image also resolves outside the original page (zip/markdown/Word) -
covers the "![Alt](datei)" case used in practice, not every
conceivable markdown syntax variant (e.g. reference links). */ -}}
{{- $inhalt := $variante.RawContent -}}
{{- range $variante.Resources -}}
{{- $inhalt = replace $inhalt (printf "](%s)" .Name) (printf "](%s)" .Permalink) -}}
{{- end -}}
{{/* Sections written by users (preparation/procedure/background) are H1 in
the editor, but here should sit under the document heading and
"## Diese Variante", not next to it - see
partials/methoden-set-shift-headings.html. */ -}}
{{- $inhalt = partial "methoden-set-shift-headings.html" $inhalt -}}
---
titel: {{ $titel | jsonify }}
quelle: {{ $variante.Permalink | jsonify }}
---
# {{ $titel }}
{{ with $methode }}
{{ with .Params.verwendungsmoeglichkeit }}{{ . }}
{{ end }}
## Steckbrief
{{ with .Params.zielgruppe }}- Zielgruppe: {{ delimit . ", " }}
{{ end -}}
{{ with .Params.kompetenzbereich }}- Kompetenzbereich: {{ delimit . ", " }}
{{ end -}}
{{ with .Params.kategorie }}- Kategorie: {{ delimit . ", " }}
{{ end -}}
{{ if isset $variante.Params "dauer_minuten" }}- Dauer: {{ $variante.Params.dauer_minuten }} Minuten
{{ end -}}
{{ if or (isset $variante.Params "gruppengroesse_min") (isset $variante.Params "gruppengroesse_max") -}}
- Gruppengröße: {{ if eq $variante.Params.gruppengroesse_min $variante.Params.gruppengroesse_max }}{{ $variante.Params.gruppengroesse_min }}{{ else }}{{ $variante.Params.gruppengroesse_min }}–{{ $variante.Params.gruppengroesse_max }}{{ end }}
{{ end -}}
{{ with $variante.Params.lizenz }}- Lizenz: {{ . }}
{{ end }}
{{ with .Params.lernchancen }}**Lernchancen:** {{ delimit . ", " }}
{{ end -}}
{{ end }}
## Diese Variante
{{ with $variante.Params.varianten_beschreibung }}{{ . }}
{{ end -}}
{{ $inhalt }}
{{ with $variante.Params.anhaenge }}
## Anhänge
{{ range . }}
{{ $anhang := . }}
{{ with $variante.Resources.GetMatch $anhang.datei }}- [{{ $anhang.beschreibung | default $anhang.datei }}]({{ .Permalink }})
{{ end -}}
{{ end }}
{{ end }}
---
*Quelle: [{{ $titel }}]({{ $variante.Permalink }}){{ with $variante.Params.autoren }} · Autor:innen: {{ delimit . ", " }}{{ end }}{{ with $variante.Params.lizenz }} · Lizenz: {{ . }}{{ end }}*
@@ -0,0 +1,36 @@
{{/* Shifts ATX headings (#, ##, ...) in the given markdown text down by one
level (H1->H2 etc.), outside fenced code blocks (``` or ~~~). Reason:
users write preparation/procedure/background as standalone H1
sections (see the Decap CMS editor), which in the methoden-set
document (varianten/single.md) should sit under the document heading
and "## Diese Variante" though, not next to it at the same level.
Called with the text as context, returns the shifted text (see
hugo/layouts/varianten/single.md). Known limit: at most H5->H6, an H6
would stay unshifted (no valid H7 in markdown) - doesn't occur in
practice for this content (preparation/procedure/background, rarely
deeper than H3). */}}
{{- $text := . -}}
{{- $lines := split $text "\n" -}}
{{- $inFence := false -}}
{{- $fenceChar := "" -}}
{{- $ergebnis := slice -}}
{{- range $lines -}}
{{- $line := . -}}
{{- $trimmed := trim $line " \t" -}}
{{- $neueZeile := $line -}}
{{- if or (hasPrefix $trimmed "```") (hasPrefix $trimmed "~~~") -}}
{{- $char := substr $trimmed 0 1 -}}
{{- if not $inFence -}}
{{- $inFence = true -}}
{{- $fenceChar = $char -}}
{{- else if eq $char $fenceChar -}}
{{- $inFence = false -}}
{{- end -}}
{{- else if not $inFence -}}
{{- if findRE "^#{1,5} " $line -}}
{{- $neueZeile = printf "#%s" $line -}}
{{- end -}}
{{- end -}}
{{- $ergebnis = $ergebnis | append $neueZeile -}}
{{- end -}}
{{- delimit $ergebnis "\n" -}}
+51
View File
@@ -0,0 +1,51 @@
{{/* The "Steckbrief" (profile) box looks the same everywhere, regardless of
whether it's seen on the method page (with one or several variants)
or on the variant page - see the project website (background/analysis notes) Teil 2.3. It
therefore contains exclusively method-owned details:
verwendungsmoeglichkeit, zielgruppe/kompetenzbereich/kategorie/ID,
lernchancen, herkunft, initiatoren, tags. Variant-specific fields
(variant description, duration, group size, material, authors,
license, sources) deliberately do NOT belong here, see
partials/diese-variante.html - otherwise the box would look different
depending on the number of variants. Expects a dict: methode,
zeigeKurzbeschreibung (true only on the variant page, since it's not
visible anywhere else there - on the method page it's already in
method__header), zeigeLink (true only on the variant page, for the
back-link to the method). */}}
{{ $methode := .methode }}
<div class="method__section method__section--methode">
<h2>Steckbrief</h2>
{{ if .zeigeKurzbeschreibung }}
{{ with $methode.Params.kurzbeschreibung }}<p class="method__lead">{{ . }}</p>{{ end }}
{{ end }}
{{ with $methode.Params.verwendungsmoeglichkeit }}
<p class="method__label">Verwendungsmöglichkeit</p>
<p>{{ . }}</p>
{{ end }}
<dl class="method__meta-inline">
{{ with $methode.Params.zielgruppe }}<div><dt>Zielgruppe</dt><dd>{{ delimit . ", " }}</dd></div>{{ end }}
{{ with $methode.Params.kompetenzbereich }}<div><dt>Kompetenzbereich</dt><dd>{{ delimit . ", " }}</dd></div>{{ end }}
{{ with $methode.Params.kategorie }}<div><dt>Kategorie</dt><dd>{{ delimit . ", " }}</dd></div>{{ end }}
{{ with $methode.Params.kennung }}<div><dt>ID</dt><dd>{{ . }}</dd></div>{{ end }}
</dl>
{{ with $methode.Params.lernchancen }}
<p class="method__label">Lernchancen</p>
<ul>{{ range . }}<li>{{ . }}</li>{{ end }}</ul>
{{ end }}
{{ with $methode.Params.herkunft }}
<p class="method__label">Herkunft</p>
<ul>{{ range . }}<li>{{ . }}</li>{{ end }}</ul>
{{ end }}
{{ with $methode.Params.initiatoren }}
<p class="method__label">Initiator:innen</p>
<ul>{{ range . }}<li>{{ . }}</li>{{ end }}</ul>
{{ end }}
{{ with $methode.Params.tags }}
<ul class="method__tags">
{{ range . }}<li><a href="{{ (printf "/tags/%s/" (. | urlize)) | relURL }}">{{ . }}</a></li>{{ end }}
</ul>
{{ end }}
{{ if .zeigeLink }}
<p class="method__updated"><a href="{{ $methode.RelPermalink }}">Zur Methode „{{ $methode.Params.titel | default $methode.Title }}“ →</a></p>
{{ end }}
</div>
+25
View File
@@ -0,0 +1,25 @@
{{/* Comparison card for a variant - used both in the multi-variant list on
the method page and in the "Andere Varianten dieser Methode" (other
variants of this method) section on the variant page itself (see
hugo/layouts/_default/single.html and
hugo/layouts/varianten/single.html). Deliberately shows only the
fields meant for comparison - variant description, duration, group
size, authors, license, date - no material and no attachments (see
the project website (background/analysis notes) Teil 2.2), no highlighting of differing
values. Called with the respective variant as context. */}}
{{ $variante := . }}
<article class="variant-card">
<h3><a href="{{ $variante.RelPermalink }}">{{ $variante.Params.untertitel }}</a></h3>
{{ with $variante.Params.varianten_beschreibung }}<p class="variant-card__desc">{{ . }}</p>{{ end }}
<dl class="variant-card__meta">
{{ if isset $variante.Params "dauer_minuten" }}<div><dt>Dauer</dt><dd>{{ $variante.Params.dauer_minuten }} Min.</dd></div>{{ end }}
{{ if or (isset $variante.Params "gruppengroesse_min") (isset $variante.Params "gruppengroesse_max") }}
<div><dt>Gruppengröße</dt><dd>{{ if eq $variante.Params.gruppengroesse_min $variante.Params.gruppengroesse_max }}{{ $variante.Params.gruppengroesse_min }}{{ else }}{{ $variante.Params.gruppengroesse_min }}–{{ $variante.Params.gruppengroesse_max }}{{ end }}</dd></div>
{{ end }}
{{ with $variante.Params.lizenz }}<div><dt>Lizenz</dt><dd>{{ . }}</dd></div>{{ end }}
</dl>
{{ with $variante.Params.autoren }}<p class="variant-card__autoren">Autor:innen: {{ delimit . ", " }}</p>{{ end }}
{{ with index hugo.Data.varianten $variante.File.ContentBaseName }}
<p class="method__updated">Zuletzt geändert: {{ .geaendert | time.AsTime | dateFormat "02.01.2006" }}</p>
{{ end }}
</article>
@@ -0,0 +1,10 @@
{{/* Returns all variant pages (section "varianten") belonging to the given
method page, matched via Params.kennung, not title/slug (see
admin/config.template.yml and the Manifest chapter on the project website) - the reverse
direction of partials/methode-fuer-variante.html. Called with the
respective method as context. Unsorted and unfiltered - callers apply
their own sort/exclusion on top (see hugo/layouts/_default/single.html,
hugo/layouts/varianten/single.html, partials/variantenspanne.html,
hugo/layouts/_default/single.md). */}}
{{ $varianten := where (where site.RegularPages "Section" "varianten") "Params.methode" .Params.kennung }}
{{ return $varianten }}
@@ -0,0 +1,37 @@
{{/* Computes the duration/group-size range and the set of licenses present
for a method from its variants. Called with the respective method
page as context, returns a dict with dauerMin/dauerMax/dauerSeen,
groesseMin/groesseMax/groesseSeen ("Seen" distinguishes "no value
present" from "value is 0") and lizenzen (sorted, unique list). Used
by the method page, the cards on the homepage, and the filters there,
so the same logic doesn't exist multiple times. Material deliberately
NOT here: no aggregation planned on the method page, see
admin/config.template.yml. */}}
{{ $methode := . }}
{{ $varianten := partial "varianten-fuer-methode.html" $methode }}
{{ $dauerMin := 0 }}{{ $dauerMax := 0 }}{{ $dauerSeen := false }}
{{ $groesseMin := 0 }}{{ $groesseMax := 0 }}{{ $groesseSeen := false }}
{{ $lizenzen := slice }}
{{ range $varianten }}
{{ if isset .Params "dauer_minuten" }}
{{ $dauer := .Params.dauer_minuten }}
{{ if $dauerSeen }}
{{ if lt $dauer $dauerMin }}{{ $dauerMin = $dauer }}{{ end }}
{{ if gt $dauer $dauerMax }}{{ $dauerMax = $dauer }}{{ end }}
{{ else }}
{{ $dauerMin = $dauer }}{{ $dauerMax = $dauer }}{{ $dauerSeen = true }}
{{ end }}
{{ end }}
{{ if isset .Params "gruppengroesse_min" }}
{{ $gmin := .Params.gruppengroesse_min }}
{{ if $groesseSeen }}{{ if lt $gmin $groesseMin }}{{ $groesseMin = $gmin }}{{ end }}{{ else }}{{ $groesseMin = $gmin }}{{ $groesseSeen = true }}{{ end }}
{{ end }}
{{ if isset .Params "gruppengroesse_max" }}
{{ if gt .Params.gruppengroesse_max $groesseMax }}{{ $groesseMax = .Params.gruppengroesse_max }}{{ end }}
{{ end }}
{{ with .Params.lizenz }}{{ $lizenzen = $lizenzen | append . }}{{ end }}
{{ end }}
{{ $lizenzen = $lizenzen | uniq | sort }}
{{ return dict "dauerMin" $dauerMin "dauerMax" $dauerMax "dauerSeen" $dauerSeen "groesseMin" $groesseMin "groesseMax" $groesseMax "groesseSeen" $groesseSeen "lizenzen" $lizenzen }}
+66
View File
@@ -0,0 +1,66 @@
{{ define "main" }}
{{/* A dedicated, deliberately simple full-text search via Pagefind instead
of trying to merge it here with the homepage's facet search
(index.html, filter.js) into one component: Pagefind only knows
pages/URLs, not the method-vs-variant relationship, so mixing it with
the card facets there would be a lot of glue code for little benefit.
Robustness over feature scope: Pagefind's own bundled default widget
(PagefindUI) instead of custom rendering of the results - see
https://pagefind.app/docs/ui/. The index itself is only created AFTER
the Hugo build (command-line step "pagefind --site public", see
the installation guide on the project website) - under "hugo server" there is no index yet,
see the note below in the script. */}}
<section class="search-page" data-pagefind-ignore="all">
<h1>{{ .Title }}</h1>
<p class="search-page__hint">
Durchsucht alle veröffentlichten Methoden und Varianten vollständig –
auch Vorbereitung, Ablauf und Hintergründe, nicht nur Titel und Tags.
Für eine schnelle Filterung nach Zielgruppe, Kompetenzbereich, Kategorie,
Dauer oder Gruppengröße: <a href="{{ "/" | relURL }}">Startseite mit Filtern</a>.
</p>
<div id="pagefind-suche"></div>
</section>
<link href="{{ "pagefind/pagefind-ui.css" | relURL }}" rel="stylesheet">
<script src="{{ "pagefind/pagefind-ui.js" | relURL }}" defer></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
// "pagefind-ui.js" only exists after the separate indexing step
// following the Hugo build (see comment above) - deliberately stay
// silent here without an index instead of showing an error, e.g. under
// "hugo server".
if (typeof PagefindUI === "undefined") return;
var ui = new PagefindUI({
element: "#pagefind-suche",
showSubResults: true,
autofocus: true,
// German translation given explicitly instead of relying on
// Pagefind's automatic language detection via <html lang>: more
// robust against differing locale spellings (here "de-DE" instead
// of "de"), see hugo/layouts/_default/baseof.html. Wording taken
// 1:1 from Pagefind's own de.json.
translations: {
placeholder: "Suchen",
clear_search: "Löschen",
load_more: "Weitere Ergebnisse laden",
search_label: "Diese Seite durchsuchen",
filters_label: "Filter",
zero_results: "Keine Ergebnisse für [SEARCH_TERM]",
many_results: "[COUNT] Ergebnisse für [SEARCH_TERM]",
one_result: "Ein Ergebnis für [SEARCH_TERM]",
alt_search: "Keine Ergebnisse für [SEARCH_TERM]. Stattdessen erscheinen Ergebnisse für [DIFFERENT_TERM].",
search_suggestion: "Keine Ergebnisse für [SEARCH_TERM]. Probier einen der folgenden Vorschläge:",
searching: "[SEARCH_TERM] wird gesucht …"
}
});
// Takes ?q=... from the URL (from the search field in the header, see
// baseof.html - whose form now submits here instead of to the
// homepage) as a pre-filled search, the documented way via the
// PagefindUI instance method, see https://pagefind.app/docs/ui/.
var q = new URLSearchParams(window.location.search).get("q");
if (q) ui.triggerSearch(q);
});
</script>
{{ end }}
+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" . -}}