1+ <?xml version =" 1.0" encoding =" utf-8" standalone =" yes" ?>
2+ <urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9"
3+ xmlns : xhtml =" http://www.w3.org/1999/xhtml"
4+ xmlns : coveo =" http://www.coveo.com/schemas/metadata" >
5+
6+
7+ {{- range where .Site.Pages "Params.sitemap_exclude" "ne" true -}}
8+ {{- $pathParts := split .RelPermalink "/" -}}
9+ {{- $depth := len (where $pathParts "ne" "") -}}
10+
11+ {{- if and
12+ (or (.IsPage) (.IsSection))
13+ (or (not .File)
14+ (and
15+ (not (in .File.Path "_example-learning-path"))
16+ (not (in .File.Path "_next-steps"))))
17+ -}}
18+
19+
20+ {{- $readingtime := .Params.minutes_to_complete -}}
21+ {{- if not $readingtime -}}
22+ {{- $readingtime = .Parent.Params.minutes_to_complete -}}
23+ {{- end -}}
24+ {{- if $readingtime -}}
25+ <url >
26+ <loc >https://learn.arm.com{{ .Permalink -}}</loc >{{ if not .Lastmod.IsZero -}}
27+ <lastmod >{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) -}}</lastmod >{{ end -}}
28+ {{ with .Sitemap.ChangeFreq -}}
29+ <changefreq >{{ . -}}</changefreq >
30+ {{ end -}}
31+ <coveo : metadata >
32+ <contenttype >Learning Path</contenttype >
33+ <authorname >
34+ {{- $authors := .Params.author -}}
35+ {{- if not $authors -}}
36+ {{- $authors = .Parent.Params.author -}}
37+ {{- end -}}
38+ {{- if $authors -}}
39+ {{- if (reflect.IsSlice $authors) -}}
40+ {{- delimit $authors ";" -}}
41+ {{- else -}}
42+ {{- $authors -}}
43+ {{- end -}}
44+ {{- else -}}
45+ Arm
46+ {{- end -}}
47+ </authorname >
48+ <category >
49+ {{- if and (.File) (in .File.Path "install-guides") -}}
50+ Install Guide
51+
52+ {{- else if and (.File) (in .File.Path "learning-paths/cross-platform") -}}
53+ {{- $titles := slice -}}
54+ {{- $shared := .Parent.Params.shared_between -}}
55+ {{- if $shared -}}
56+ {{- range $shared -}}
57+ {{- $sectionPath := printf "learning-paths/%s" . -}}
58+ {{- $section := site.GetPage $sectionPath -}}
59+ {{- with $section -}}
60+ {{- $titles = $titles | append .Title -}}
61+ {{- end -}}
62+ {{- end -}}
63+ {{- delimit $titles ";" -}}
64+ {{- else -}}
65+ Unknown Shared Path
66+ {{ end }}
67+
68+ {{- else -}}
69+ {{- $section := .Parent -}}
70+ {{- with $section -}}
71+ {{- with .Parent -}}
72+ {{- with .Title -}}
73+ {{- . -}}
74+ {{- else -}}
75+ Unknown Section
76+ {{- end -}}
77+ {{- else -}}
78+ Unknown Section
79+ {{- end -}}
80+ {{- else -}}
81+ Unknown Section
82+ {{- end -}}
83+
84+ {{ end }}
85+ </category >
86+ <readingtime >
87+ {{- $readingtime := .Params.minutes_to_complete -}}
88+ {{- if not $readingtime -}}
89+ {{- $readingtime = .Parent.Params.minutes_to_complete -}}
90+ {{- end -}}
91+ {{- if $readingtime -}}
92+ {{- $readingtime -}}
93+ {{- else -}}
94+ NO TIME
95+ {{- end -}}
96+ </readingtime >
97+ <skilllevels >
98+ {{- $skilllevel := .Params.skilllevels -}}
99+ {{- if not $skilllevel -}}
100+ {{- $skilllevel = .Parent.Params.skilllevels -}}
101+ {{- end -}}
102+ {{- if $skilllevel -}}
103+ {{- $skilllevel -}}
104+ {{- else -}}
105+ Introductory
106+ {{- end -}}
107+ </skilllevels >
108+ <subjects >
109+ {{- if and (.File) (in .File.Path "install-guides") -}}
110+ Install Guide
111+ {{- else -}}
112+ {{- $subject := .Params.subjects -}}
113+ {{- if not $subject -}}
114+ {{- $subject = .Parent.Params.subjects -}}
115+ {{- end -}}
116+ {{- if $subject -}}
117+ {{- $subject -}}
118+ {{- else -}}
119+ NO SUBJECT
120+ {{- end -}}
121+ {{- end -}}
122+ </subjects >
123+ {{- if not (and (.File) (in .File.Path "install-guides")) -}}
124+ {{- $armips := .Params.armips -}}
125+ {{- if not $armips -}}
126+ {{- $armips = .Parent.Params.armips -}}
127+ {{- end -}}
128+ {{- if $armips -}}
129+ <armips >{{ delimit $armips ";" -}}
130+ </armips >
131+ {{- end -}}
132+ {{ end }}
133+
134+ {{- if not (and (.File) (in .File.Path "install-guides")) -}}
135+ {{- $tools_software_languages := .Params.tools_software_languages -}}
136+ {{- if not $tools_software_languages -}}
137+ {{- $tools_software_languages = .Parent.Params.tools_software_languages -}}
138+ {{- end -}}
139+ {{- if $tools_software_languages -}}
140+ <toolsoftwarelanguage >{{ delimit $tools_software_languages ";" -}}
141+ </toolsoftwarelanguage >
142+ {{- end -}}
143+ {{ end }}
144+
145+
146+ {{- if not (and (.File) (in .File.Path "install-guides")) -}}
147+ {{- $operatingsystems := .Params.operatingsystems -}}
148+ {{- if not $operatingsystems -}}
149+ {{- $operatingsystems = .Parent.Params.operatingsystems -}}
150+ {{- end -}}
151+ {{- if $operatingsystems -}}
152+ <operatingsystems >{{ delimit $operatingsystems ";" -}}
153+ </operatingsystems >
154+
155+ {{- end -}}
156+ {{ end }}
157+
158+ {{- if and (.File) (in .File.Path "learning-paths") -}}
159+ <learningpathid >
160+ {{- $title := .Params.title -}}
161+ {{- if not $title -}}
162+ {{- $subjetitlect = .Parent.Params.title -}}
163+ {{- end -}}
164+ {{- if $title -}}
165+ {{- $title -}}
166+ {{- end -}}
167+ </learningpathid >
168+ <parentid >1</parentid >
169+ <pageid >{{.Params.weight -}}</pageid >
170+ {{- end -}}
171+ </coveo : metadata >
172+ </url >
173+ {{- end -}}
174+ {{ end -}}{{ end -}}
175+ </urlset >
0 commit comments