feat(comments): prepare for more third party comments system integration
This commit is contained in:
@@ -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" . }}
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user