Skip to content

Commit 5a7d5c3

Browse files
committed
add id
Signed-off-by: Aabid Sofi <[email protected]>
1 parent 2a10901 commit 5a7d5c3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hugo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ canonifyurls: true
55
# cSpell:ignore goldmark github hugo readingtime docsy subdir lastmod pygments linenos catmullrom norsk gu
66

77
# Language settings
8-
contentDir: content/en
8+
contentDir: content
99
defaultContentLanguage: en
1010
defaultContentLanguageInSubdir: false
1111
# Useful when translating.
@@ -68,7 +68,7 @@ markup:
6868

6969
# Comment out if you don't want the "print entire section" link enabled.
7070
outputs:
71-
section: [HTML, print, RSS]
71+
section: [HTML, print, RSS,JSON]
7272

7373
params:
7474
taxonomy:
@@ -212,4 +212,4 @@ module:
212212
markup:
213213
goldmark:
214214
renderer:
215-
unsafe: true
215+
unsafe: true

layouts/learning-paths/list.json.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"description": {{ $p.Description | jsonify }},
1717
"banner": {{ $p.Params.Banner | absURL | jsonify }},
1818
"permalink": {{ $p.Permalink | jsonify }},
19+
"id": {{ $p.Params.Id | jsonify }},
1920
"orgId": {{ $uuid | jsonify }},
2021
"courses": [
2122
{{- range $j, $c := $children }}

0 commit comments

Comments
 (0)