').replaceAll("#content img");
}
});
});
--
cgit v1.2.3
From 14dececfd2ac91e1be402d3ebfff61974b3d76a1 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Thu, 23 Apr 2020 14:14:13 +0800
Subject: Update font stack & resources
---
layouts/partials/scripts.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index a6dc367..48a056e 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -31,7 +31,7 @@
$("#scroll-top").click(function () {
$("html, body").animate({
scrollTop: 0
- }, "slow");
+ });
});
{{ end }}
--
cgit v1.2.3
From 39d85cc63387f940dcfd6cef1a6d43d2cc4ebdf1 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Thu, 23 Apr 2020 19:36:26 +0800
Subject: Support in-post or global APlayer
---
layouts/partials/head.html | 12 +++++++++++-
layouts/partials/post-meta.html | 6 +++---
layouts/partials/scripts.html | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+), 4 deletions(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 305106d..5b6de37 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -33,6 +33,10 @@
+{{ if or (.Site.Params.playerURL) (.Params.playerURL) }}
+
+
+{{ end }}
{{ else }}
{{ $jquery := resources.Get "js/jquery.min.js" }}
@@ -41,10 +45,16 @@
{{ $fontawesome := resources.Get "css/all.min.css" }}
+{{ if or (.Site.Params.playerURL) (.Params.playerURL) }}
+{{ $aplayerCSS := resources.Get "css/APlayer.min.css" }}
+
+{{ $aplayerJS := resources.Get "js/APlayer.min.js" }}
+
+{{ end }}
{{ end }}
-{{ if or .Params.math .Site.Params.math }}
+{{ if or (.Params.math) (.Site.Params.math) }}
diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html
index 0164619..7e5b47b 100644
--- a/layouts/partials/post-meta.html
+++ b/layouts/partials/post-meta.html
@@ -1,10 +1,10 @@
-
+
|
-
+{{ .WordCount }}{{ i18n "postMetaWordCount" }} |
-
+
{{ if .Params.tags }}
{{ range .Params.tags }}
{{ . }}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 48a056e..cd47e6f 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -25,6 +25,41 @@
});
{{ end }}
+{{ with .Params.playerURL }}
+
+{{ end }}
+{{ with .Site.Params.playerURL }}
+
+{{ end }}
{{ if .Site.Params.scrollTop }}
-
\ No newline at end of file
+
+{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/comment-utterances.html b/layouts/partials/comment-utterances.html
index b41aef4..b3edfbd 100644
--- a/layouts/partials/comment-utterances.html
+++ b/layouts/partials/comment-utterances.html
@@ -1,7 +1,9 @@
+{{ with .Site.Params.utterancesRepo }}
{{ i18n "postCommentLoading" }}
-
-
\ No newline at end of file
+
+
+{{ end }}
\ No newline at end of file
--
cgit v1.2.3
From 47e7b0846e68cd0713d8ff00763351c81486c725 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Thu, 23 Apr 2020 19:43:29 +0800
Subject: Fix comment loading indicator
---
layouts/partials/scripts.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index cd47e6f..2f83c91 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,4 +1,4 @@
-{{ if and (.IsPage) (.Site.Params.utterancesComment) }}
+{{ if and (.IsPage) (.Site.Params.utterancesRepo) }}
-
+
{{ if or (.Site.Params.playerURL) (.Params.playerURL) }}
-
+
{{ end }}
{{ else }}
--
cgit v1.2.3