File tree Expand file tree Collapse file tree
themes/arm-design-system-hugo-theme/layouts/_default Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 -}}
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
9191 {{- $titles = $titles | append .Title -}}
9292 {{- end -}}
9393 {{- end -}}
94- {{- delimit $titles ";" -}}
94+ {{- delimit $titles ";" | htmlEscape -}}
9595 {{- else -}}
9696 Unknown Shared Path
9797 {{ end }}
103103 {{- $lpSection = .Parent -}}
104104 {{- end -}}
105105 {{- with $lpSection.Parent.Title -}}
106- {{ . }}
106+ {{ . | htmlEscape }}
107107 {{- else -}}
108108 Unknown Category Title
109109 {{- end -}}
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 >
You can’t perform that action at this time.
0 commit comments