Skip to content

Commit 89fcc64

Browse files
Merge pull request #3126 from zachlasiuk/main
TEMPLATE: Fixed coveo issue by escaping & and other characters
2 parents 5f40e5a + 0a98e69 commit 89fcc64

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

themes/arm-design-system-hugo-theme/layouts/_default/index.coveo.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
<contenttype>Learning Path</contenttype>
3636
<title>
3737
{{- if and (.File) (in .File.Path "install-guides") -}}
38-
{{ .Params.title}} - Install Guide
38+
{{ .Params.title | htmlEscape }} - Install Guide
3939
{{- else -}}
40-
{{- .Params.title -}}
40+
{{- .Params.title | htmlEscape -}}
4141
{{- end -}}
4242
</title>
4343
<description>
@@ -47,12 +47,12 @@
4747
{{- $description = .Parent.Params.who_is_this_for -}}
4848
{{- end -}}
4949
{{- if $description -}}
50-
{{- $description -}}
50+
{{- $description | htmlEscape -}}
5151
{{- else -}}
5252
No Learning Path Description
5353
{{- end -}}
5454
{{- else if and (.File) (in .File.Path "install-guides") -}}
55-
A guide to quickly install {{.Params.title}} on Arm.
55+
A guide to quickly install {{ .Params.title | htmlEscape }} on Arm.
5656
{{- else -}}
5757
Unknown Description
5858
{{- end -}}
@@ -64,9 +64,9 @@
6464
{{- end -}}
6565
{{- if $authors -}}
6666
{{- if (reflect.IsSlice $authors) -}}
67-
{{- delimit $authors ";" -}}
67+
{{- delimit $authors ";" | htmlEscape -}}
6868
{{- else -}}
69-
{{- $authors -}}
69+
{{- $authors | htmlEscape -}}
7070
{{- end -}}
7171
{{- else -}}
7272
Arm
@@ -91,7 +91,7 @@
9191
{{- $titles = $titles | append .Title -}}
9292
{{- end -}}
9393
{{- end -}}
94-
{{- delimit $titles ";" -}}
94+
{{- delimit $titles ";" | htmlEscape -}}
9595
{{- else -}}
9696
Unknown Shared Path
9797
{{ end }}
@@ -103,7 +103,7 @@
103103
{{- $lpSection = .Parent -}}
104104
{{- end -}}
105105
{{- with $lpSection.Parent.Title -}}
106-
{{ . }}
106+
{{ . | htmlEscape }}
107107
{{- else -}}
108108
Unknown Category Title
109109
{{- end -}}
@@ -192,8 +192,8 @@
192192

193193

194194
<foldingcollection>
195-
{{- if .IsSection -}}{{ .Title }}
196-
{{- else -}}{{ .Parent.Title }}
195+
{{- if .IsSection -}}{{ .Title | htmlEscape }}
196+
{{- else -}}{{ .Parent.Title | htmlEscape }}
197197
{{- end -}}
198198
</foldingcollection>
199199
<itemid>{{ md5 .RelPermalink }}</itemid>

0 commit comments

Comments
 (0)