mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-10 22:09:31 +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>
13 lines
469 B
HTML
13 lines
469 B
HTML
{{ if .Params.showComments | default (site.Params.article.showComments | default false) }}
|
|
{{ if templates.Exists "partials/comments.html" }}
|
|
<div class="pt-3">
|
|
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
|
|
<div class="pt-3">
|
|
{{ partial "comments.html" . }}
|
|
</div>
|
|
</div>
|
|
{{ else }}
|
|
{{ warnf "[BLOWFISH] Comments are enabled for %s but no comments partial exists." .File.Path }}
|
|
{{ end }}
|
|
{{ end }}
|