Phase 6 part 5, step 1: a shared site theme
internal/theme embeds a Hugo theme from federated-website's look and the 13 section types both sites share, with the header, footer, colors, font and logo set per site in hugo.toml, and a README of each type's fields. The catalogue reader reads themes' sections and READMEs after the site's own; lead forms know a theme site needs only the Lead Capture address. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{{ range .Params.sections }}
|
||||
{{ if eq .type "hero" }}
|
||||
{{ partial "sections/hero.html" . }}
|
||||
{{ else if eq .type "final-cta" }}
|
||||
{{ partial "sections/final-cta.html" . }}
|
||||
{{ else if templates.Exists (printf "partials/sections/%s.html" .type) }}
|
||||
{{ partial "sections/wrapper.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user