diff --git a/themes/digital.gov/layouts/guides/single.html b/themes/digital.gov/layouts/guides/single.html index 8e0b2216f4..cca3374f15 100644 --- a/themes/digital.gov/layouts/guides/single.html +++ b/themes/digital.gov/layouts/guides/single.html @@ -19,7 +19,9 @@ {{- else -}} {{- partial "core/guides/guide-content.html" . -}} {{- end -}} - {{- partial "core/glossary.html" . -}} + {{- if .Parent.Params.glossary -}} + {{- partial "core/glossary.html" . -}} + {{- end -}} {{ end }} diff --git a/themes/digital.gov/layouts/landings/list.html b/themes/digital.gov/layouts/landings/list.html index 89e3110b1a..24558cac62 100644 --- a/themes/digital.gov/layouts/landings/list.html +++ b/themes/digital.gov/layouts/landings/list.html @@ -9,7 +9,6 @@

{{- .Params.title -}}

-
{{- .Content -}} @@ -46,6 +45,8 @@

{{- end -}} {{- partial "core/attribution.html" . -}}

- {{- partial "core/glossary.html" . -}} + {{- if .Parent.Params.glossary -}} + {{- partial "core/glossary.html" . -}} + {{- end -}} {{ end }} diff --git a/themes/digital.gov/layouts/partials/core/glossary.html b/themes/digital.gov/layouts/partials/core/glossary.html index 404147a90e..435d2c5809 100644 --- a/themes/digital.gov/layouts/partials/core/glossary.html +++ b/themes/digital.gov/layouts/partials/core/glossary.html @@ -1,3 +1,10 @@ +{{/* Display a sidebar of glossary terms populated by a json file used on guide pages. + + Example (click on glossary button): + https://digital.gov/guides/hcd/discovery-concepts/ +*/}} + +