{{/* Served under "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 -}}