Files
indiekit-blog/_includes/components/sections/custom-html.njk
Ricardo d9e99fa9cc feat: add homepage builder components for Phase 3
- homepage-builder.njk: master section renderer for configured sections
- sections/hero.njk: hero section with avatar, name, title, bio, social
- sections/recent-posts.njk: configurable recent posts section
- sections/custom-html.njk: freeform HTML content block
- Wire home.njk Tier 1 to include homepage-builder when config exists

Part of indiekit-endpoint-homepage plugin integration.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 15:55:08 +01:00

19 lines
509 B
Plaintext

{#
Custom HTML Section - freeform HTML/markdown content block
Rendered by homepage-builder when custom-html section is configured
#}
{% set sectionConfig = section.config or {} %}
<section class="mb-8 sm:mb-12">
{% if sectionConfig.title %}
<h2 class="text-xl sm:text-2xl font-bold text-surface-900 dark:text-surface-100 mb-4 sm:mb-6">
{{ sectionConfig.title }}
</h2>
{% endif %}
<div class="prose dark:prose-invert max-w-none">
{{ sectionConfig.content | safe }}
</div>
</section>