refactor: extract partials for post components and create separate page template
All checks were successful
Deploy Theme / deploy (push) Successful in 13s
All checks were successful
Deploy Theme / deploy (push) Successful in 13s
This commit is contained in:
17
page.hbs
Normal file
17
page.hbs
Normal 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}}
|
||||
Reference in New Issue
Block a user