Skip to content

Commit 39d75f4

Browse files
authored
Merge pull request #1819 from annietllnd/hugo
Remove partial prefix as of hugo v0.146.1
2 parents 609022f + 7a811a1 commit 39d75f4

File tree

3 files changed

+34
-38
lines changed

3 files changed

+34
-38
lines changed

.github/workflows/test-lp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ jobs:
88
uses: actions/checkout@v4
99
with:
1010
ref: ${{ steps.vars.outputs.branch-name }}
11+
- name: Run hugo command to test site builds
12+
run: |
13+
sudo apt-get install -y hugo
14+
hugo
1115
- name: Get all changed markdown files
1216
id: changed-markdown-files
1317
uses: step-security/changed-files@v45

themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/metadata-table.html

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
{{/* Populate dictionary with author metadata */}}
4545
{{ range $index, $row := $csv_content }}
4646
{{ $name := index $row 0 }}
47-
48-
{{ $metadata := dict
47+
48+
{{ $metadata := dict
4949
"company" (cond (and (gt (len $row) 1) (ne (index $row 1) "")) (index $row 1) nil)
5050
"github" (cond (and (gt (len $row) 2) (ne (index $row 2) "")) (printf "https://github.com/%s" (index $row 2)) nil)
5151
"linkedin" (cond (and (gt (len $row) 3) (ne (index $row 3) "")) (printf "https://linkedin.com/in/%s" (index $row 3)) nil)
@@ -85,7 +85,7 @@
8585
{{end}}
8686
{{ end }}
8787
{{end}}
88-
{{end}}
88+
{{end}}
8989

9090
<!-- Check if there are any matching learning paths to this tool (or the main tool) -->
9191
{{ if in $tools_software_languages (.Title | urlize)}}
@@ -97,14 +97,6 @@
9797

9898

9999

100-
101-
102-
103-
104-
105-
106-
107-
108100
<!-- Markdown metadata table -->
109101
<div class="content-box">
110102
{{- $page_h2 := printf "About this %s" $table_name -}}
@@ -135,22 +127,22 @@ <h2 id="about-marker">{{$page_h2}}</h2>
135127
Reading time:
136128
</td>
137129
<td id="reading-time" class="td-metadata-value" >
138-
<span><i class="fa-light fa-clock fa-sm"></i></span>&nbsp; <span class="time-to-complete-string" name="{{.Params.minutes_to_complete}}">{{partial "partials/server-side-processing/time-beautifier.html" .Params.minutes_to_complete}}</span>
130+
<span><i class="fa-light fa-clock fa-sm"></i></span>&nbsp; <span class="time-to-complete-string" name="{{.Params.minutes_to_complete}}">{{partial "server-side-processing/time-beautifier.html" .Params.minutes_to_complete}}</span>
139131
</td>
140132
</tr>
141133
<tr>
142134
<td class="td-metadata-key">
143135
Last updated:
144136
</td>
145-
<td id="last-updated" class="td-metadata-value">
137+
<td id="last-updated" class="td-metadata-value">
146138
<span><i class="fa-light fa-calendar-days fa-sm"></i></span>&nbsp;
147-
{{/* If learning path, obtain last modified date from any LP file; install guide just display from this file. */}}
139+
{{/* If learning path, obtain last modified date from any LP file; install guide just display from this file. */}}
148140
{{ if $is_learning_path}}
149141
{{- $true_last_mod_date := partial "server-side-processing/calculate-last-update.html" . }}
150142
{{$true_last_mod_date.Format "02 Jan 2006"}}
151143
{{else}}
152144
{{ .Lastmod.UTC.Format "2 Jan 2006" }}
153-
{{end}}
145+
{{end}}
154146
</td>
155147
</tr>
156148
{{ if .Params.test_maintenance}}
@@ -163,8 +155,8 @@ <h2 id="about-marker">{{$page_h2}}</h2>
163155
</td>
164156
</tr>
165157
{{end}}
166-
</table>
167-
</div>
158+
</table>
159+
</div>
168160
<!-- RIGHT TABLE, mobile -->
169161
<div class="md:u-hide u-display-block">
170162
<table class="width-max-content">
@@ -187,7 +179,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
187179
</tr>
188180
<tr>
189181
<td id="reading-time" class="td-metadata-value margin-l-24" >
190-
<span><i class="fa-light fa-clock fa-sm"></i></span>&nbsp; <span class="time-to-complete-string" name="{{.Params.minutes_to_complete}}">{{partial "partials/server-side-processing/time-beautifier.html" .Params.minutes_to_complete}}</span>
182+
<span><i class="fa-light fa-clock fa-sm"></i></span>&nbsp; <span class="time-to-complete-string" name="{{.Params.minutes_to_complete}}">{{partial "server-side-processing/time-beautifier.html" .Params.minutes_to_complete}}</span>
191183
</td>
192184
</tr>
193185
<tr>
@@ -196,15 +188,15 @@ <h2 id="about-marker">{{$page_h2}}</h2>
196188
</td>
197189
</tr>
198190
<tr>
199-
<td id="last-updated" class="td-metadata-value margin-l-24">
191+
<td id="last-updated" class="td-metadata-value margin-l-24">
200192
<span><i class="fa-light fa-calendar-days fa-sm"></i></span>&nbsp;
201-
{{/* If learning path, obtain last modified date from any LP file; install guide just display from this file. */}}
193+
{{/* If learning path, obtain last modified date from any LP file; install guide just display from this file. */}}
202194
{{ if $is_learning_path}}
203195
{{- $true_last_mod_date := partial "server-side-processing/calculate-last-update.html" . }}
204196
{{$true_last_mod_date.Format "02 Jan 2006"}}
205197
{{else}}
206198
{{ .Lastmod.UTC.Format "2 Jan 2006" }}
207-
{{end}}
199+
{{end}}
208200
</td>
209201
</tr>
210202
{{ if .Params.test_maintenance}}
@@ -219,7 +211,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
219211
</td>
220212
</tr>
221213
{{end}}
222-
</table>
214+
</table>
223215
</div>
224216
</div>
225217
<!-- Second column table-->
@@ -258,7 +250,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
258250
</span>
259251
<br>
260252
{{- end -}}
261-
</td>
253+
</td>
262254
</tr>
263255
<!-- Arm IP if learning path. Official Docs if tool -->
264256
{{if $is_learning_path}}
@@ -267,7 +259,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
267259
Arm IP:
268260
</td>
269261
<td class="td-metadata-value">
270-
{{- range .Params.armips -}}<a href="https://developer.arm.com/Processors#q={{.}}" target="_blank" style="margin-right: 16px;">{{.}}{{ partial "general-formatting/external-link.html"}}</a>{{- end -}}
262+
{{- range .Params.armips -}}<a href="https://developer.arm.com/Processors#q={{.}}" target="_blank" style="margin-right: 16px;">{{.}}{{ partial "general-formatting/external-link.html"}}</a>{{- end -}}
271263
</td>
272264
</tr>
273265
{{else}}
@@ -298,7 +290,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
298290
<span class="u-flex u-flex-row u-align-items-center u-gap-1/2">
299291
<span class="fa-solid fa-tag"></span>
300292
{{ .Params.subjects }}
301-
</ads-tag>
293+
</ads-tag>
302294
{{end}}
303295
{{ if .Params.cloud_service_providers }}
304296
<ads-tag href='{{ "/" | relLangURL}}tag/{{.Params.cloud_service_providers | urlize}}' style="margin-bottom: 4px;">
@@ -321,7 +313,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
321313
{{ . }}
322314
</ads-tag>
323315
{{ end }}
324-
</span>
316+
</span>
325317
</td>
326318
</tr>
327319
<!-- tool tags, if present in learning paths -->
@@ -336,14 +328,14 @@ <h2 id="about-marker">{{$page_h2}}</h2>
336328
<span class="u-flex u-flex-row u-align-items-center u-gap-1/2">
337329
<span class="fa-solid fa-tag"></span>
338330
{{$active_tag}}
339-
</ads-tag></span>
331+
</ads-tag></span>
340332
</td>
341333
</tr>
342334
{{end}}
343335
{{end}}
344-
</table>
336+
</table>
345337
</div>
346-
<!-- Table mobile-sized windows only -->
338+
<!-- Table mobile-sized windows only -->
347339
<div class="md:u-hide u-display-block">
348340
<table>
349341
<tr>
@@ -393,7 +385,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
393385
<td class="td-metadata-value margin-l-24">
394386
{{- range .Params.armips -}}
395387
<a href="https://developer.arm.com/Processors#q={{.}}" target="_blank" style="margin-right: 16px;">{{.}}{{ partial "general-formatting/external-link.html"}}</a>
396-
{{- end -}}
388+
{{- end -}}
397389
</td>
398390
</tr>
399391
{{else}}
@@ -450,7 +442,7 @@ <h2 id="about-marker">{{$page_h2}}</h2>
450442
{{ . }}
451443
</ads-tag>
452444
{{ end }}
453-
</span>
445+
</span>
454446
</td>
455447
</tr>
456448
<!-- Tool tag, if present in learning paths -->
@@ -467,18 +459,18 @@ <h2 id="about-marker">{{$page_h2}}</h2>
467459
<span class="u-flex u-flex-row u-align-items-center u-gap-1/2">
468460
<span class="fa-solid fa-tag"></span>
469461
{{$active_tag}}
470-
</ads-tag></span>
462+
</ads-tag></span>
471463
</td>
472464
</tr>
473465
{{end}}
474466
{{end}}
475467

476-
</table>
468+
</table>
477469

478-
</div>
470+
</div>
479471
</div>
480472
{{if not $is_learning_path}}
481473
<p style="margin-top: 24px;">This guide is intended to get you up and running with this tool quickly with the most common settings. For a thorough review of all options, refer to the official documentation.</p>
482474
{{end}}
483-
</div>
475+
</div>
484476
</div>

themes/arm-design-system-hugo-theme/layouts/partials/general-formatting/path-ads-card.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ <h6 class="search-title learning-path-title">{{.learning_path.Title}}</h6>
3232
&nbsp; {{.calculated_date.Format "02 Jan 2006"}}
3333

3434
&nbsp;&nbsp;&nbsp;&nbsp;
35-
35+
3636
<span><i class="fa-light fa-clock"></i></span>
37-
&nbsp;<span class="time-to-complete-string" name="{{.learning_path.Params.minutes_to_complete}}">{{partial "partials/server-side-processing/time-beautifier.html" .learning_path.Params.minutes_to_complete}}</span>
37+
&nbsp;<span class="time-to-complete-string" name="{{.learning_path.Params.minutes_to_complete}}">{{partial "server-side-processing/time-beautifier.html" .learning_path.Params.minutes_to_complete}}</span>
3838
</p>
39-
</ads-card-content>
39+
</ads-card-content>
4040
</ads-card>

0 commit comments

Comments
 (0)