From 7cbd68f70491cad9bba4104e6fca7137e5eb99b5 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Wed, 22 Jul 2026 19:20:01 -0400 Subject: [PATCH] Turn /gift into a branch bundle so partner subpages can be added later Converts content/gift/index.md to _index.md and extracts the shared hero/form rendering into a partial (courses-body.html) used by both single.html and a new list.html, so /gift renders identically but can now hold real child pages like /gift//. The gift.reground.org vanity redirect already forwards any path generically (redir https://reground.org/gift{uri}), so no infrastructure change is needed to support future partnership URLs like gift.reground.org/cheyenne once a matching page exists here. --- content/gift/{index.md => _index.md} | 0 layouts/courses/list.html | 3 ++ layouts/courses/single.html | 42 +--------------------------- layouts/partials/courses-body.html | 41 +++++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 41 deletions(-) rename content/gift/{index.md => _index.md} (100%) create mode 100644 layouts/courses/list.html create mode 100644 layouts/partials/courses-body.html 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 }} -
    - {{ range . }}
  • {{ . | markdownify }}
  • {{ end }} -
- {{ 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 }} +
    + {{ range . }}
  • {{ . | markdownify }}
  • {{ end }} +
+ {{ 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" .) }} +