package main
import "git.dev.alexdunmow.com/block/core/templates"
// emailWrapperComponent renders the Corporate Modernist email wrapper.
//
// The wrapper is locked to the navy-classic light preset regardless of the
// active site preset (per spec §10) for email-client compatibility. CSS
// custom properties are declared in
; every inline `style="…"`
// references them via var(--cm-email-*) with the navy-classic HSL triple
// as the fallback, so:
// - email clients that strip
if emailCtx.PreviewText != "" {
{ emailCtx.PreviewText }
}
if emailCtx.SiteSettings.LogoURL != "" {
} else if emailCtx.SiteSettings.SiteName != "" {
{ emailCtx.SiteSettings.SiteName }
}
|
|
|
|
@templ.Raw(body)
|
|
if emailCtx.SiteSettings.SiteName != "" {
{ emailCtx.SiteSettings.SiteName }
}
You are receiving this email because you subscribed to updates.
if emailCtx.SiteSettings.SiteURL != "" {
{ emailCtx.SiteSettings.SiteURL }
}
if emailCtx.UnsubscribeURL != "" {
Unsubscribe
}
|
|
|