Files
palina-theme/post.hbs
Sebastian Krüger f431b97559
All checks were successful
Deploy Theme / deploy (push) Successful in 13s
refactor: extract partials for post components and create separate page template
2026-02-21 20:38:28 +01:00

31 lines
1.1 KiB
Handlebars

{{!< 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 fallback="No Title Provided"}}</h1>
<section class="post-meta text-[var(--text-secondary)] text-lg">
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format="MMMM DD, YYYY"}}</time>
{{#if primary_tag}}
<span class="mx-2">&bull;</span>
<a href="{{primary_tag.url}}" class="text-[var(--text-secondary)] hover:text-[var(--text-primary)] transition duration-200">{{primary_tag.name}}</a>
{{/if}}
</section>
</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 fallback="<p>No content provided for this post.</p>"}}
</section>
{{> "post-navigation"}}
{{#if primary_tag}}
{{> "related-posts"}}
{{/if}}
</article>
{{/post}}