From a8f2908b716c17d9a8f94a64f59c5478320cc21f Mon Sep 17 00:00:00 2001 From: Zach Lasiuk Date: Mon, 23 Jun 2025 15:56:56 -0500 Subject: [PATCH 1/2] updated coveo metadata to align with new site expectaitons --- .../layouts/_default/index.coveo.xml | 41 +++++++++++-------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml b/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml index 48cf8c2e17..a33d65f37f 100644 --- a/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml +++ b/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml @@ -3,6 +3,9 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:coveo="http://www.coveo.com/schemas/metadata"> +{{- $itemidcounter := 1 -}} + + {{- range where .Site.Pages "Params.sitemap_exclude" "ne" true -}} {{- $pathParts := split .RelPermalink "/" -}} @@ -172,24 +175,28 @@ {{ end }} {{- end -}} + + + + {{- if and (.File) (in .File.Path "learning-paths") -}} - - {{- if .IsSection -}} - {{- with .Title -}} - {{ . }} - {{- else -}} - Unknown Section Title - {{- end -}} - {{- else -}} - {{- with .Parent.Title -}} - {{ . }} - {{- else -}} - Unknown Parent Title - {{- end -}} - {{- end -}} - - 1 - {{.Params.weight -}} + + + {{/* Ensure a unique ID for each learning path */}} + {{- $itemidcounter = add $itemidcounter 1 -}} + + + + + {{- if .IsSection -}}{{ .Title }} + {{- else -}}{{ .Parent.Title }} + {{- end -}} + + {{ md5 .RelPermalink }} + {{- if and .Parent (not .IsSection) (not .Parent.IsPage) (or .Parent.IsSection) }} + {{ md5 .Parent.RelPermalink }} + {{- end -}} + {{- end -}} From bbd2d362da5c19475822097f87e8896beebff1eb Mon Sep 17 00:00:00 2001 From: Zach Lasiuk Date: Mon, 23 Jun 2025 16:01:33 -0500 Subject: [PATCH 2/2] updated install guide naming --- .../layouts/_default/index.coveo.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml b/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml index a33d65f37f..3a2a723c8d 100644 --- a/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml +++ b/themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml @@ -34,7 +34,11 @@ Learning Path - {{- .Params.title -}} + {{- if and (.File) (in .File.Path "install-guides") -}} + {{ .Params.title}} - Install Guide + {{- else -}} + {{- .Params.title -}} + {{- end -}} {{- if and (.File) (in .File.Path "learning-paths") -}}