diff --git a/layouts/lab/single.json.json b/layouts/lab/single.json.json index affaeeb..2222e0c 100644 --- a/layouts/lab/single.json.json +++ b/layouts/lab/single.json.json @@ -5,13 +5,13 @@ "description": {{ .Content | plainify | jsonify }}, "weight": {{ $p.weight | jsonify }}, "type": "lab", - "starter_catalog_link": {{ $p.starter_catalog_link | jsonify }}, - "starter_embed_link": { + "starterCatalogLink": {{ $p.starter_catalog_link | jsonify }}, + "starterEmbedLink": { "src": {{ $p.starter_embed_link.src | jsonify }}, "id": {{ $p.starter_embed_link.id | jsonify }} }, - "answer_catalog_link": {{ $p.answer_catalog_link | jsonify }}, - "answer_embed_link": { + "answerCatalogLink": {{ $p.answer_catalog_link | jsonify }}, + "answerEmbedLink": { "src": {{ $p.answer_embed_link.src | jsonify }}, "id": {{ $p.answer_embed_link.id | jsonify }} } diff --git a/layouts/partials/common-curricula-properties.html b/layouts/partials/common-curricula-properties.html index b254d51..f0b054a 100644 --- a/layouts/partials/common-curricula-properties.html +++ b/layouts/partials/common-curricula-properties.html @@ -14,10 +14,10 @@ "permalink": {{ $page.RelPermalink | jsonify }}, "type": {{ $type | jsonify }}, "prerequisites": {{ partial "test/collect-prerequisites.html" $page | jsonify }}, -"reading_time": {{ $page.ReadingTime | jsonify }}, +"readingTime": {{ $page.ReadingTime | jsonify }}, "competencies": {{ $page.Params.competencies | jsonify }}, "objectives": {{ $page.Params.objectives | jsonify }}, "audience": {{ $page.Params.audience | jsonify }}, -"prerequisite_knowledge": {{ $page.Params.prerequisite_knowledge | jsonify }}, -"related_resources": {{ $page.Params.related_resources | jsonify }} +"prerequisiteKnowledge": {{ $page.Params.prerequisite_knowledge | jsonify }}, +"relatedResources": {{ $page.Params.related_resources | jsonify }} diff --git a/layouts/partials/learning-path.json.html b/layouts/partials/learning-path.json.html index 20cf40e..112d06d 100644 --- a/layouts/partials/learning-path.json.html +++ b/layouts/partials/learning-path.json.html @@ -20,7 +20,7 @@ "id": {{ $id | jsonify }}, "level": {{ (trim $level " \n\r\t") | jsonify }}, "slug": {{ $slug | jsonify }}, - "org_id": {{ $uuid | jsonify }}, + "orgId": {{ $uuid | jsonify }}, "type": {{ .Params.Type | jsonify }}, "visibility": {{ or .Params.Visibility "public" | jsonify }}, "status": {{ or .Params.Status "ready" | jsonify }}, @@ -52,16 +52,16 @@ "permalink": {{ .RelPermalink | jsonify }}, "categories": {{ .Params.Categories | jsonify }}, "tags": {{ .Params.Tags | jsonify }}, - "total_courses": {{ len (where .Pages "Type" "course") }}, - "total_tests": {{ len (where .Pages "Type" "test") }}, - "total_modules": {{ len (where .Pages "Type" "module") }}, - "total_pages": {{ len (where .Pages "Type" "page") }}, + "totalCourses": {{ len (where .Pages "Type" "course") }}, + "totalTests": {{ len (where .Pages "Type" "test") }}, + "totalModules": {{ len (where .Pages "Type" "module") }}, + "totalPages": {{ len (where .Pages "Type" "page") }}, "competencies": {{ .Params.competencies | jsonify }}, "objectives": {{ .Params.objectives | jsonify }}, "audience": {{ .Params.audience | jsonify }}, - "prerequisite_knowledge": {{ .Params.prerequisite_knowledge | jsonify }}, - "related_resources": {{ .Params.related_resources | jsonify }}, - "additional_attributes": {{ .Params.additional_attributes | jsonify }}, + "prerequisiteKnowledge": {{ .Params.prerequisite_knowledge | jsonify }}, + "relatedResources": {{ .Params.related_resources | jsonify }}, + "additionalAttributes": {{ .Params.additional_attributes | jsonify }}, "children": [ {{- range $j, $c := .Pages }} {{- if $j }},{{ end }}