Add built-in Disqus partial.

This commit is contained in:
Covey 2018-09-15 17:25:36 +08:00
parent f78fe1889f
commit 169a5feb8a
2 changed files with 16 additions and 0 deletions

View File

@ -233,4 +233,7 @@
content: " / "; content: " / ";
} }
.post-comment{
padding: 3em 0;
}
} }

View File

@ -83,6 +83,19 @@
</section> </section>
</div> </div>
{{ end }} {{ end }}
<div class="post-comment">
{{ if ne .Site.DisqusShortname "" }}
{{ if ( .Params.showComments | default true ) }}
{{ template "_internal/disqus.html" . }}
{{ end }}
{{ else }}
{{ end }}
</div>
<div class="post-nav"> <div class="post-nav">
{{ if .PrevInSection }} {{ if .PrevInSection }}
<a href="{{.PrevInSection.Permalink}}" class="prev" rel="prev" title="{{ .PrevInSection.Title}}"><i class="iconfont icon-left"></i>&nbsp;{{ .PrevInSection.Title}}</a> <a href="{{.PrevInSection.Permalink}}" class="prev" rel="prev" title="{{ .PrevInSection.Title}}"><i class="iconfont icon-left"></i>&nbsp;{{ .PrevInSection.Title}}</a>