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 @@
This page provides a reference specification for the Forest Stewardship Council (FSC) schema extension.
- {{/* 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" }} -