From 30772e0dd8436062e325eda0f54e90f7e8696705 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 6 May 2020 22:58:45 +0800 Subject: Sass structure full rebuild --- layouts/partials/comment-disqus.html | 2 +- layouts/partials/comment-utterances.html | 4 ++-- layouts/partials/header.html | 8 +++++--- layouts/partials/scripts.html | 12 ++++++------ layouts/partials/sidebar.html | 10 +++++----- 5 files changed, 19 insertions(+), 17 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/comment-disqus.html b/layouts/partials/comment-disqus.html index 81c9c68..539f8c7 100644 --- a/layouts/partials/comment-disqus.html +++ b/layouts/partials/comment-disqus.html @@ -1,5 +1,5 @@ {{ with .Site.Params.disqusShortname }} -
+
{{ end }} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e4fcaae..3166a36 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,8 +1,10 @@
-
- {{ .Site.Title }} - {{ with .Site.Params.subTitle }}{{ . }}{{ end }} +
\ No newline at end of file diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 894d5c3..839a87a 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -7,19 +7,19 @@ var commentCheckInterval = self.setInterval(checkUtterances, 500); function checkUtterances() { - commentStatus = $('#post-comment .utterances').attr('style'); + commentStatus = $('.post-comment .utterances').attr('style'); if (commentStatus == undefined) { commentLoadingTime += 1; if (commentLoadingTime > 20) { clearInterval(commentCheckInterval); - $('#post-comment').hide(); - $('#post-loading p').text('{{ i18n "postCommentLoadingFailed" }}'); - $('#post-loading i').attr('class', 'far fa-times-circle'); + $('.post-comment').hide(); + $('.post-loading p').text('{{ i18n "postCommentLoadingFailed" }}'); + $('.post-loading i').attr('class', 'far fa-times-circle'); } return; } else { clearInterval(commentCheckInterval); - $('#post-loading').hide(); + $('.post-loading').hide(); } } }); @@ -29,7 +29,7 @@ {{ if in .Site.Params.mainSections .Type }}