diff --git a/themes/digital.gov/layouts/communities/single.html b/themes/digital.gov/layouts/communities/single.html index 52d8028105..00943e0303 100644 --- a/themes/digital.gov/layouts/communities/single.html +++ b/themes/digital.gov/layouts/communities/single.html @@ -1,6 +1,6 @@ -{{ define "content" }} -
-
+{{- define "content" -}} +
+
{{- partial "partials/core/usa-breadcrumbs.html" . -}}
@@ -24,108 +24,107 @@

{{ .Title | markdownify }} Community

data-title-heading-level="h3" data-root-margin="-350px 0px -350px 0px" > - {{/* Summary */}} - {{- if .Params.summary -}} -
-

{{- .Params.summary | markdownify -}}

+
+ {{- if .Params.summary -}} +
+

{{- .Params.summary | markdownify -}}

- {{- if .Params.community_list -}} -
-

- - Connect with us -

+ {{- if .Params.community_list -}} +
+

+ + Connect with us +

- {{- range $i, $e := .Params.community_list -}} -
-
- {{/* Checks to see if the community is public or govt only and sets the "terms" of the community, with an option to override the terms for each community by setting it in the front matter */}} + {{- range $i, $e := .Params.community_list -}} +
+
+ {{/* Checks to see if the community is public or govt only and sets the "terms" of the community, with an option to override the terms for each community by setting it in the front matter */}} - {{/* PUBLIC */}} - {{- if eq $e.type "public" -}} - {{/* Checking to see if community terms are defined */}} - {{- if $e.terms -}} -

{{- $e.terms | markdownify -}}

- {{- else -}} -

Open to the public.

+ {{/* PUBLIC */}} + {{- if eq $e.type "public" -}} + {{/* Checking to see if community terms are defined */}} + {{- if $e.terms -}} +

{{- $e.terms | markdownify -}}

+ {{- else -}} +

Open to the public.

+ {{- end -}} {{- end -}} - {{- end -}} - {{/* GOVT */}} - {{- if eq $e.type "government" -}} - {{- if $e.terms -}} -

{{- $e.terms | markdownify -}}

- {{- else -}} -

- Open to anyone with a .gov or .mil email address. -

+ {{/* GOVT */}} + {{- if eq $e.type "government" -}} + {{- if $e.terms -}} +

{{- $e.terms | markdownify -}}

+ {{- else -}} +

+ Open to anyone with a .gov or .mil email address. +

+ {{- end -}} {{- end -}} - {{- end -}} - {{/* GOVT_ONLY */}} - {{- if eq $e.type "government_only" -}} - {{- if $e.terms -}} -

{{- $e.terms | markdownify -}}

- {{- else -}} -

Open to any government employee.

+ {{/* GOVT_ONLY */}} + {{- if eq $e.type "government_only" -}} + {{- if $e.terms -}} +

{{- $e.terms | markdownify -}}

+ {{- else -}} +

Open to any government employee.

+ {{- end -}} {{- end -}} - {{- end -}} -
+
-
- {{/* Community JOIN types --- - - Listerv via an email (most common) - - Listerv via a form - - Google Group - - Slack - */}} - {{/* Listserv Platforms without form sign-up option */}} - {{- if and (eq $e.platform "listserv") (not $e.subscribe_form ) -}} - {{- partial "core/community-join-without-form.html" (dict "context" . "e" $e) -}} - {{- end -}} +
+ {{/* Community JOIN types --- + - Listerv via an email (most common) + - Listerv via a form + - Google Group + - Slack + */}} + {{/* Listserv Platforms without form sign-up option */}} + {{- if and (eq $e.platform "listserv") (not $e.subscribe_form ) -}} + {{- partial "core/community-join-without-form.html" (dict "context" . "e" $e) -}} + {{- end -}} - {{/* Google Group platforms */}} - {{- if and (eq $e.platform "google-group") ( $e.subscribe_form ) -}} - {{- partial "core/community-join-google-group.html" (dict "context" . "e" $e) -}} - {{- end -}} + {{/* Google Group platforms */}} + {{- if and (eq $e.platform "google-group") ( $e.subscribe_form ) -}} + {{- partial "core/community-join-google-group.html" (dict "context" . "e" $e) -}} + {{- end -}} - {{/* Slack platforms */}} - {{- if and (eq $e.platform "slack") ( $e.subscribe_form ) -}} - {{- partial "core/community-join-slack.html" (dict "context" . "e" $e) -}} - {{- end -}} + {{/* Slack platforms */}} + {{- if and (eq $e.platform "slack") ( $e.subscribe_form ) -}} + {{- partial "core/community-join-slack.html" (dict "context" . "e" $e) -}} + {{- end -}} +
-
- {{- end -}} + {{- end -}} -
- {{- end -}} -
- {{- .Content -}} -
+
+ {{- end -}} -
- {{- partial "core/get-upcomingevents.html" . -}} -
+ {{/* Main Content */}} +
+ {{- .Content -}} +
-
-

Community Conduct

- {{- partial "core/community_pagefooter.html" . -}} -
-
-
-
+
+ {{- partial "core/get-upcomingevents.html" . -}} +
+ +
+

Community Conduct

+ {{- partial "core/community_pagefooter.html" . -}} +
-
- {{- end -}} + {{- end -}} +