Skip to content

Commit f980abd

Browse files
authored
Merge pull request #145 from layer5io/fix-and-enhance-test-states
dont cannonify the urls in hugo
2 parents a6a50f9 + 036019a commit f980abd

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

hugo.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
baseURL: http://localhost:9876/academy/
22
title: Layer5 Academy Theme
3-
canonifyurls: true
43
ignoreLogs: ['warning-goldmark-raw-html']
54

65
# cSpell:ignore goldmark github hugo readingtime docsy subdir lastmod pygments linenos catmullrom norsk gu

layouts/partials/common-curricula-properties.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"description": {{ $page.Description | jsonify }},
1212
"weight": {{ $page.Params.Order | jsonify }},
1313
"banner": {{ $banner_url | jsonify }},
14-
"permalink": {{ $page.Permalink | jsonify }},
14+
"permalink": {{ $page.RelPermalink | jsonify }},
1515
"type": {{ $type | jsonify }},
1616
"prerequisites": {{ partial "test/collect-prerequisites.html" $page | jsonify }},
1717
"reading_time": {{ $page.ReadingTime | jsonify }},

layouts/partials/learning-path.json.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"banner": {{ $banner_url | jsonify }},
3030
"badge": {{ partial "badge.html" (dict "page" . "badge" .Params.badge "curriculaId" $id ) | jsonify }},
3131
"certificate": {{ .Params.certificate | jsonify }},
32-
"permalink": {{ .Permalink | jsonify }},
32+
"permalink": {{ .RelPermalink | jsonify }},
3333
"categories": {{ .Params.Categories | jsonify }},
3434
"tags": {{ .Params.Tags | jsonify }},
3535
"total_courses": {{ len (where .Pages "Type" "course") }},

layouts/partials/test/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- Validate: TotalQuestions should be multiple of totalQuestionsPerSet -->
1010
{{- if ne (mod (len $p.questions) $totalQuestionsPerSet) 0 -}}
11-
{{- errorf "Total questions (%d) is not a multiple of total_questions_per_set (%d)" (len $p.questions) $totalQuestionsPerSet -}}
11+
{{- errorf "Total questions (%d) is not a multiple of total_questions_per_set (%d) [ %s ]" (len $p.questions) $totalQuestionsPerSet .File.Path -}}
1212
{{- end -}}
1313

1414
<!-- Validate all question ids are unique -->

0 commit comments

Comments
 (0)