first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{{/*
|
||||
Prose, with optional `ctas`. `offer` adds a highlighted card below:
|
||||
`badge` (a small cyan tag), `text`, and `ctas`.
|
||||
*/}}
|
||||
{{ $s := . }}
|
||||
{{ partial "sections/head.html" $s }}
|
||||
{{/* markdownify drops the <p> around a lone paragraph; put it back so inline markup stays in the flow */}}
|
||||
{{ $body := $s.body | markdownify }}
|
||||
{{ if not (findRE `^\s*<(p|ul|ol|h[1-6]|div|blockquote|pre|table|figure|hr)[\s>]` $body) }}{{ $body = printf "<p>%s</p>" $body | safeHTML }}{{ end }}
|
||||
<div class="prose{{ if $s.centered }} centered{{ end }}">
|
||||
{{ $body }}
|
||||
</div>
|
||||
{{ if $s.ctas }}<div class="cta-row mt-2">{{ partial "sections/ctas.html" $s.ctas }}</div>{{ end }}
|
||||
{{ with $s.offer }}
|
||||
<div class="offer-card">
|
||||
{{ with .badge }}<span class="offer-badge">{{ . }}</span>{{ end }}
|
||||
<p class="offer-text">{{ .text | markdownify }}</p>
|
||||
{{ with .ctas }}<div class="offer-actions">{{ partial "sections/ctas.html" . }}</div>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user