From 594655b050145b7c3beab06166678940e613a79a Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Fri, 29 May 2020 16:55:27 +0800 Subject: Disqus support --- layouts/_default/single.html | 1 + layouts/partials/comment-disqus.html | 18 ++++++++++++++++++ layouts/partials/scripts-end.html | 16 ++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 layouts/partials/comment-disqus.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 72ec0a8..9795378 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -26,5 +26,6 @@ {{ end }} {{ if ne .Params.noComments true }} {{ partial "comment-utterances.html" . }} +{{ partial "comment-disqus.html" . }} {{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/comment-disqus.html b/layouts/partials/comment-disqus.html new file mode 100644 index 0000000..539f8c7 --- /dev/null +++ b/layouts/partials/comment-disqus.html @@ -0,0 +1,18 @@ +{{ with .Site.Params.disqusShortname }} +