Files
HugoBlox-kit/modules/blox/layouts/_partials/comments.html
T
George Cushen f4280ddb1c refactor: rename modules and update migration docs
BREAKING CHANGE
Module paths moved to `github.com/HugoBlox/kit` with new names:
- core `blox-tailwind` → `blox`
- analytics → `analytics`
- netlify → `integrations/netlify`
- slides (reveal) → `slides`
Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
2026-01-02 20:59:48 +00:00

18 lines
530 B
HTML

{{ $provider := trim (site.Params.hugoblox.comments.provider | lower) " " }}
{{ if $provider }}
{{ $provider_tpl := printf "comments/%s.html" $provider }}
{{ $provider_exists := templates.Exists (printf "_partials/%s" $provider_tpl) }}
{{ if not $provider_exists }}
{{ errorf "The '%s' comment provider was not found." $provider }}
{{ end }}
{{ $commentable_page := .Params.commentable }}
{{ if $commentable_page }}
<section id="comments">
{{ partial $provider_tpl . }}
</section>
{{ end }}
{{ end }}