diff --git a/site/layouts/_default/fsc.html b/site/layouts/_default/fsc.html index f6ebc4a6..642c4ea9 100644 --- a/site/layouts/_default/fsc.html +++ b/site/layouts/_default/fsc.html @@ -28,23 +28,17 @@

FSC Schema Extension

This page provides a reference specification for the Forest Stewardship Council (FSC) schema extension.

Metadata Elements

-

- {{/* Note: we need to use two ranges for each cluster because it is */}} - {{/* not possible to re-use Hugo's paginate object unless you use */}} - {{/* the same exact arguments each time. */}} - - {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Fsc" }} - {{- if .Params.field -}} - {{ .Params.field }} - {{- end -}} - {{ end }} -

+ {{/* Assign the current page context to a variable so we don't lose */}} + {{/* it in the range below. */}} + {{ $context := . }} - {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Fsc" }} -
- {{ .Render "term" }} -
+ {{ .Scratch.Set "cluster" "Fsc" }} + {{ $modules := slice "Assurance" "Certificate" "Coverage" "Evaluation" "Form" "Scope" "Status" }} + {{ range $modules }} + {{ $module := . }} + {{ $.Scratch.Set "module" $module }} + {{ partialCached "module-elements.html" $context $module }} {{ end }}

Download