mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-20 02:35:22 +00:00
Extract the comments block into a shared article-comments partial and include it from both single and simple layouts. Fixes #2938. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
20 lines
630 B
HTML
20 lines
630 B
HTML
{{ define "main" }}
|
|
<article class="max-w-full">
|
|
<header>
|
|
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
|
|
{{ partial "breadcrumbs.html" . }}
|
|
{{ end }}
|
|
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
|
|
{{ .Title | emojify }}
|
|
</h1>
|
|
</header>
|
|
<section class="max-w-full mt-6 prose dark:prose-invert">
|
|
{{ .Content }}
|
|
</section>
|
|
<footer class="pt-8 print:hidden">
|
|
{{ partial "sharing-links.html" . }}
|
|
{{ partial "article-comments.html" . }}
|
|
</footer>
|
|
</article>
|
|
{{ end }}
|