diff --git a/site/layouts/_default/home.html b/site/layouts/_default/home.html index 05869efe..582573f3 100644 --- a/site/layouts/_default/home.html +++ b/site/layouts/_default/home.html @@ -83,54 +83,41 @@
- {{/* 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" "==" "Global" }} - {{- if .Params.field -}} - {{ .Params.field }} - {{- end -}} - {{ end }} -
- - {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Global" }} -- {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Certification" }} - {{- if .Params.field -}} - {{ .Params.field }} - {{- end -}} - {{ end }} -
- {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Certification" }} -- {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Impact" }} - {{- if .Params.field -}} - {{ .Params.field }} - {{- end -}} - {{ end }} -
- {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Impact" }} -The ISEAL Core schema is available for download in two formats:
Elements in the {{- $module -}} module: |
+ + {{/* Use range over a nested where. The way to read this is */}} + {{/* from the inside out: terms, cluster, module. */}} + {{ range where (where (where site.RegularPages "Type" "terms") "Params.cluster" "==" $cluster) "Params.module" "==" $module }} + {{ .Params.field }} + {{ end }} + | +