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>
12 lines
308 B
HTML
12 lines
308 B
HTML
{{/*
|
|
Anchor id for a section: its own `id`, else one made from its `toc`,
|
|
`kicker`, or `headline`. Used by the section wrapper.
|
|
*/}}
|
|
{{ $id := "" }}
|
|
{{ with .id }}
|
|
{{ $id = . }}
|
|
{{ else }}
|
|
{{ with (or .toc .kicker .headline) }}{{ $id = . | plainify | anchorize }}{{ end }}
|
|
{{ end }}
|
|
{{ return $id }}
|