Add staticman support (static comments coupled with Github pull request)

This commit is contained in:
badele 2017-11-17 22:57:41 +01:00
commit 8a0d06525d
16 changed files with 264 additions and 7 deletions

View file

@ -19,12 +19,18 @@
{{ end }}
</ul>
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (.Site.Params.comments)) }}
{{ if .Site.DisqusShortname }}
<div class="disqus-comments">
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
{{ if .Site.Params.staticman }}
<div class="staticman-comments">
{{ partial "staticman-comments.html" . }}
</div>
{{ end }}
{{ end }}
</div>