diff options
author | Covey <liuzc89@gmail.com> | 2018-09-15 12:25:36 +0300 |
---|---|---|
committer | Covey <liuzc89@gmail.com> | 2018-09-15 12:25:36 +0300 |
commit | 169a5feb8a89b5962ac7888aa660fc6b02a5a3d1 (patch) | |
tree | d48397505d701e5356b3ee335202d0a335eda68d | |
parent | f78fe1889fcb84151bc2640834d7689d636f31a8 (diff) |
Add built-in Disqus partial.
-rw-r--r-- | assets/css/_common/_page/post.scss | 3 | ||||
-rw-r--r-- | layouts/_default/single.html | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/assets/css/_common/_page/post.scss b/assets/css/_common/_page/post.scss index 1c0ede6..768cb53 100644 --- a/assets/css/_common/_page/post.scss +++ b/assets/css/_common/_page/post.scss @@ -233,4 +233,7 @@ content: " / "; } + .post-comment{ + padding: 3em 0; + } }
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1f952c8..84d00ec 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -83,6 +83,19 @@ </section> </div> {{ 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"> {{ if .PrevInSection }} <a href="{{.PrevInSection.Permalink}}" class="prev" rel="prev" title="{{ .PrevInSection.Title}}"><i class="iconfont icon-left"></i> {{ .PrevInSection.Title}}</a> |