From 4759b574d34d5a9796c806a7c4f9a133931e7252 Mon Sep 17 00:00:00 2001 From: Nick Lyons <104778659+nick-mon1@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:57:30 -0400 Subject: [PATCH 1/2] Display communities in alphabetical order --- .../layouts/partials/core/featured-communities.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/themes/digital.gov/layouts/partials/core/featured-communities.html b/themes/digital.gov/layouts/partials/core/featured-communities.html index be9633cead..61398051fe 100644 --- a/themes/digital.gov/layouts/partials/core/featured-communities.html +++ b/themes/digital.gov/layouts/partials/core/featured-communities.html @@ -9,14 +9,11 @@ {{ $context := .context }} {{ $layout := .layout }} +{{/* list featured communities in alphabetical order */}} {{ $page_header := $context.Site.GetPage "/communities" }} {{ $communities := (where $context.Site.Pages "Section" "communities").ByTitle }} {{ $communities = (where $communities ".Params.weight" "ge" 1) }} {{ $dg_communities := (where $communities ".Params.dg_highlight" "eq" true) }} -{{/* featured community is listed first, followed by the other dg 7 listed alphabetically by title */}} -{{ $featured_community := (where $communities ".Params.weight" "eq" 2) }} -{{ $dg_communities = union $featured_community $dg_communities }} -
{{ with $page_header }} From f04f3e8ffac0ab91243e54e3f193303a768ce418 Mon Sep 17 00:00:00 2001 From: Nick Lyons Date: Mon, 1 Jul 2024 17:01:43 -0400 Subject: [PATCH 2/2] Formatting fix --- .../digital.gov/layouts/partials/core/featured-communities.html | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/digital.gov/layouts/partials/core/featured-communities.html b/themes/digital.gov/layouts/partials/core/featured-communities.html index 61398051fe..5f22bcf432 100644 --- a/themes/digital.gov/layouts/partials/core/featured-communities.html +++ b/themes/digital.gov/layouts/partials/core/featured-communities.html @@ -15,6 +15,7 @@ {{ $communities = (where $communities ".Params.weight" "ge" 1) }} {{ $dg_communities := (where $communities ".Params.dg_highlight" "eq" true) }} +
{{ with $page_header }}

{{- .Title | markdownify -}}