fix(post): Wrap content in #post helper and re-add prose classes
This commit is contained in:
4
post.hbs
4
post.hbs
@@ -1,5 +1,6 @@
|
|||||||
{{!< default}}
|
{{!< default}}
|
||||||
|
|
||||||
|
{{#post}}
|
||||||
<article class="container mx-auto px-4 py-12">
|
<article class="container mx-auto px-4 py-12">
|
||||||
<header class="text-center mb-8">
|
<header class="text-center mb-8">
|
||||||
<h1 class="text-6xl font-bold tracking-tight text-[var(--text-primary)] mb-4">{{title fallback="No Title Provided"}}</h1>
|
<h1 class="text-6xl font-bold tracking-tight text-[var(--text-primary)] mb-4">{{title fallback="No Title Provided"}}</h1>
|
||||||
@@ -29,7 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<section class="post-content max-w-3xl mx-auto text-[var(--text-primary)] leading-relaxed text-lg">
|
<section class="post-content max-w-3xl mx-auto text-[var(--text-primary)] leading-relaxed text-lg prose prose-invert">
|
||||||
{{content fallback="<p>No content provided for this post.</p>"}}
|
{{content fallback="<p>No content provided for this post.</p>"}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -39,3 +40,4 @@
|
|||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
|
{{/post}}
|
||||||
|
|||||||
Reference in New Issue
Block a user