Add internal comments (Disqus) partial

This commit is contained in:
vimux 2018-02-23 16:01:12 +03:00
parent 8ea72745ac
commit aff7c3515f
2 changed files with 6 additions and 0 deletions

View file

@ -7,5 +7,6 @@
{{ if .Params.tags }}{{ partial "post_tags.html" . }}{{ end }}
</article>
</div>
{{ partial "comments.html" . }}
</div>
{{ partial "footer.html" . }}

View file

@ -0,0 +1,5 @@
{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }}
<section class="comments block">
{{ template "_internal/disqus.html" . }}
</section>
{{ end }}