add comment system

This commit is contained in:
geekifan
2025-04-28 12:12:58 +08:00
parent eca429b15e
commit 1002146574
4 changed files with 152 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{{ $enableComment := .Params.comment | default .Site.Params.comment.enable }}
{{ if and $enableComment .Site.Params.comment.provider }}
{{ partial (printf "comments/%s.html" .Site.Params.comment.provider) . }}
{{ end }}