From 6c176d20643de268faa432adfa3e95b2b8217cb0 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 15 Apr 2020 15:17:09 +0800 Subject: Add utterances loading indicator --- layouts/_default/single.html | 4 +-- layouts/partials/comment-utterances.html | 6 ++++ layouts/partials/scripts.html | 52 +++++++++++++++++++++++++++++--- 3 files changed, 56 insertions(+), 6 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 78a9148..edd7c70 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -21,10 +21,10 @@ {{ end }} - {{ if .Site.Params.cdnUtterancesJS }} + {{ if .Site.Params.utterancesComment }} {{ partial "comment-utterances.html" . }} {{ end }} - {{ if .Site.Params.disqusShortname }} + {{ if .Site.Params.disqusComment }} {{ partial "comment-disqus.html" . }} {{ end }} diff --git a/layouts/partials/comment-utterances.html b/layouts/partials/comment-utterances.html index 6653661..05b5ba0 100644 --- a/layouts/partials/comment-utterances.html +++ b/layouts/partials/comment-utterances.html @@ -1,3 +1,9 @@ +
正在加载评论区
+