diff --git a/content/gift/index.md b/content/gift/_index.md similarity index 100% rename from content/gift/index.md rename to content/gift/_index.md diff --git a/layouts/courses/list.html b/layouts/courses/list.html new file mode 100644 index 0000000..e52f6ae --- /dev/null +++ b/layouts/courses/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ partial "courses-body.html" . }} +{{ end }} diff --git a/layouts/courses/single.html b/layouts/courses/single.html index dbc7e2a..e52f6ae 100644 --- a/layouts/courses/single.html +++ b/layouts/courses/single.html @@ -1,43 +1,3 @@ {{ define "main" }} -
-

{{ .Title }}

- {{ with .Params.hero_subhead }}

{{ . }}

{{ end }} - {{ with .Params.hero_image }}{{ end }} - - {{ partial "course-enroll-form.html" (dict "id" "top" "page" .) }} - - {{ with .Params.social_proof }}

{{ . }}

{{ end }} -
- -{{ if or .Params.credibility_heading .Params.credibility_bullets }} -
- {{ with .Params.credibility_heading }}

{{ . }}

{{ end }} - {{ with .Params.credibility_bullets }} - - {{ end }} -
-{{ end }} - -{{ if or .Params.curriculum_heading .Params.curriculum_items }} -
- {{ with .Params.curriculum_heading }}

{{ . }}

{{ end }} - {{ with .Params.curriculum_intro }}

{{ . }}

{{ end }} - {{ with .Params.curriculum_items }} -
    - {{ range . }} -
  1. {{ with .label }}{{ . }} {{ end }}{{ .text | markdownify }}
  2. - {{ end }} -
- {{ end }} -
-{{ end }} - -{{ .Content }} - -
- {{ with .Params.repeat_cta_heading }}

{{ . }}

{{ end }} - {{ partial "course-enroll-form.html" (dict "id" "bottom" "page" .) }} -
+{{ partial "courses-body.html" . }} {{ end }} diff --git a/layouts/partials/courses-body.html b/layouts/partials/courses-body.html new file mode 100644 index 0000000..91543f4 --- /dev/null +++ b/layouts/partials/courses-body.html @@ -0,0 +1,41 @@ +
+

{{ .Title }}

+ {{ with .Params.hero_subhead }}

{{ . }}

{{ end }} + {{ with .Params.hero_image }}{{ end }} + + {{ partial "course-enroll-form.html" (dict "id" "top" "page" .) }} + + {{ with .Params.social_proof }}

{{ . }}

{{ end }} +
+ +{{ if or .Params.credibility_heading .Params.credibility_bullets }} +
+ {{ with .Params.credibility_heading }}

{{ . }}

{{ end }} + {{ with .Params.credibility_bullets }} + + {{ end }} +
+{{ end }} + +{{ if or .Params.curriculum_heading .Params.curriculum_items }} +
+ {{ with .Params.curriculum_heading }}

{{ . }}

{{ end }} + {{ with .Params.curriculum_intro }}

{{ . }}

{{ end }} + {{ with .Params.curriculum_items }} +
    + {{ range . }} +
  1. {{ with .label }}{{ . }} {{ end }}{{ .text | markdownify }}
  2. + {{ end }} +
+ {{ end }} +
+{{ end }} + +{{ .Content }} + +
+ {{ with .Params.repeat_cta_heading }}

{{ . }}

{{ end }} + {{ partial "course-enroll-form.html" (dict "id" "bottom" "page" .) }} +