refactor: extract partials for post components and create separate page template
All checks were successful
Deploy Theme / deploy (push) Successful in 13s

This commit is contained in:
2026-02-21 20:38:28 +01:00
parent d1889f69f0
commit f431b97559
5 changed files with 70 additions and 56 deletions

17
page.hbs Normal file
View File

@@ -0,0 +1,17 @@
{{!< default}}
{{#post}}
<article class="container mx-auto px-4 py-12">
<header class="text-center mb-8 max-w-3xl mx-auto">
<h1 class="text-6xl font-bold tracking-tight text-[var(--text-primary)] mb-4">{{title}}</h1>
</header>
{{#if feature_image}}
{{> "feature-image"}}
{{/if}}
<section class="post-content max-w-3xl mx-auto text-[var(--text-primary)] leading-relaxed text-lg prose">
{{content}}
</section>
</article>
{{/post}}