feat(comments): prepare for more third party comments system integration

This commit is contained in:
Jimmy Cai
2020-09-08 23:30:15 +02:00
parent b66679d36a
commit c546964ce4
7 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
{{ partial "article/components/related-contents" . }}
{{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}}
{{ partial "article/components/comment" . }}
{{ partial "comments/include" . }}
{{ end }}
{{ partialCached "footer" . }}
+1 -1
View File
@@ -8,7 +8,7 @@
{{ partial "article/article.html" . }}
{{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}}
{{ partial "article/components/comment" . }}
{{ partial "comments/include" . }}
{{ end }}
{{ partialCached "footer" . }}
+5
View File
@@ -0,0 +1,5 @@
{{ if .Site.Params.comments.enabled }}
<div class="comments-container provider-{{ .Site.Params.comments.provider }}">
{{ partial (printf "comments/provider/%s" .Site.Params.comments.provider) . }}
</div>
{{ end }}