mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-10 06:15:36 +00:00
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.
18 lines
530 B
HTML
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 }}
|