Files
reground-site/layouts/courses/single.html
T
will c02512f688
deploy / deploy (push) Successful in 4s
Close the two remaining /gift funnel gaps
Add a hero image (rendered from the redesigned PDF's own cover) so the
opt-in page shows the actual resource instead of pure text, and make
the post-submit message PDF-specific with a working /gift-thanks
fallback link instead of a generic dead-end "check your inbox" line.

Both are opt-in per-page params (hero_image, success_message) so the
real drip-course page's rendering is unchanged.
2026-07-22 19:01:27 -04:00

44 lines
1.4 KiB
HTML

{{ define "main" }}
<section class="course-hero">
<h1>{{ .Title }}</h1>
{{ with .Params.hero_subhead }}<p class="course-subhead">{{ . }}</p>{{ end }}
{{ with .Params.hero_image }}<img class="course-hero-image" src="{{ . }}" alt="">{{ end }}
{{ partial "course-enroll-form.html" (dict "id" "top" "page" .) }}
{{ with .Params.social_proof }}<p class="course-social-proof">{{ . }}</p>{{ end }}
</section>
{{ if or .Params.credibility_heading .Params.credibility_bullets }}
<section class="course-credibility">
{{ with .Params.credibility_heading }}<h2>{{ . }}</h2>{{ end }}
{{ with .Params.credibility_bullets }}
<ul class="course-bullets">
{{ range . }}<li>{{ . | markdownify }}</li>{{ end }}
</ul>
{{ end }}
</section>
{{ end }}
{{ if or .Params.curriculum_heading .Params.curriculum_items }}
<section class="course-curriculum">
{{ with .Params.curriculum_heading }}<h2>{{ . }}</h2>{{ end }}
{{ with .Params.curriculum_intro }}<p>{{ . }}</p>{{ end }}
{{ with .Params.curriculum_items }}
<ol class="course-curriculum-list">
{{ range . }}
<li>{{ with .label }}<span class="course-day-label">{{ . }}</span> {{ end }}{{ .text | markdownify }}</li>
{{ end }}
</ol>
{{ end }}
</section>
{{ end }}
{{ .Content }}
<section class="course-repeat-cta">
{{ with .Params.repeat_cta_heading }}<h2>{{ . }}</h2>{{ end }}
{{ partial "course-enroll-form.html" (dict "id" "bottom" "page" .) }}
</section>
{{ end }}