Fix Disqus

* Use Hugo's built-in disqus template
* Add some extra style
* See #9
This commit is contained in:
Track3 2018-12-11 13:41:01 +08:00
parent 50fe5d1045
commit caf088cbfb
6 changed files with 21 additions and 22 deletions

View file

@ -8,8 +8,10 @@
<div class="content">
{{ .Content }}
</div>
{{- with .Params.comments }}
{{ with .Site.DisqusShortname }}{{ partialCached "disqus.html" . }}{{ end }}
{{- if and .Params.comments .Site.DisqusShortname }}
<div id="disqus" class="thin">
{{ template "_internal/disqus.html" . }}
</div>
{{- end }}
</main>
{{ end }}