themes-editorial/dropcap_intro.templ
Alex Dunmow 1d9a4c8ce6 initial: theme plugin editorial
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/editorial.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:28 +08:00

12 lines
480 B
Plaintext

package main
// dropcapIntroComponent renders the opening paragraph wrapped in the
// `editorial-dropcap` CSS hook. The hook selects `p:first-of-type::first-letter`
// inside the wrapper, so the editor can supply multiple <p> elements and the
// drop cap is applied to the first one only.
templ dropcapIntroComponent(data DropcapIntroData) {
<div class="editorial-column editorial-dropcap prose-editorial" data-block="editorial:dropcap_intro">
@templ.Raw(data.Lead)
</div>
}