Finish the Neon Tan reader-magnet page
deploy / deploy (push) Successful in 5s

Fill in the gift page's copy (title, description, subhead), wire the
cover image into the hero and og:image/Twitter card meta, and point the
download links at the real bucket path. Also fixes a bug where every
page's meta description fell back to the site-wide bio instead of its
own.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-16 06:30:28 -04:00
parent 7c059ece02
commit 55283f14aa
5 changed files with 37 additions and 10 deletions
+7 -1
View File
@@ -4,7 +4,13 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ .Site.Params.description }}">
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
{{ with .Params.cover_image }}
<meta property="og:title" content="{{ $.Title }}">
<meta property="og:description" content="{{ $.Description | default $.Site.Params.description }}">
<meta property="og:image" content="{{ . }}">
<meta name="twitter:card" content="summary_large_image">
{{ end }}
{{ $css := resources.Get "css/main.css" }}
{{ if hugo.IsProduction }}
{{ $css = $css | minify | fingerprint }}
+1
View File
@@ -1,6 +1,7 @@
{{ define "main" }}
<section class="course-hero">
<h1>{{ .Title }}</h1>
{{ with .Params.cover_image }}<img class="course-cover" src="{{ . }}" alt="{{ $.Title }} cover">{{ end }}
{{ with .Params.hero_subhead }}<p class="course-subhead">{{ . }}</p>{{ end }}
{{ partial "course-enroll-form.html" (dict "id" "top" "page" .) }}