From 231964080b26b3b3cab91b2c6144a784d3bef99d Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Sun, 14 Jun 2020 00:06:35 +0800
Subject: In-post APlayer now support multiple files
---
layouts/partials/head.html | 2 +-
layouts/partials/scripts-end.html | 21 +++++++++++++--------
2 files changed, 14 insertions(+), 9 deletions(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 0603c4d..6470262 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -41,7 +41,7 @@
{{ end }}
-{{ if .Params.playerURL }}
+{{ if .Params.player }}
{{ end }}
{{ if .Site.Params.useDisqusJS }}
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html
index 862e0e2..2e1de5f 100644
--- a/layouts/partials/scripts-end.html
+++ b/layouts/partials/scripts-end.html
@@ -7,20 +7,25 @@
-{{ with .Params.playerURL }}
+{{ with .Params.player }}
-
{{ with .Params.player }}
--
cgit v1.2.3
From 398ca6e2f300cce5c7bf7fa69fde42b4b592f5a4 Mon Sep 17 00:00:00 2001
From: Jiawei Huang
Date: Sun, 14 Jun 2020 14:05:14 -0700
Subject: Add preliminary Google AdSense support
When `googleAdsense` is set in `config.toml`, the AdSense code snippet
will be inserted between the `
` tags of your site. Only
Google AdSense Auto ads is supported at the moment.
---
layouts/partials/head.html | 9 +++++++++
1 file changed, 9 insertions(+)
(limited to 'layouts/partials')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 0603c4d..b953cd8 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -41,6 +41,15 @@
{{ end }}
+{{ if .Site.Params.googleAdsense }}
+
+
+{{ end}}
{{ if .Params.playerURL }}
{{ end }}
--
cgit v1.2.3
From a3376d1ad133455b73ca893e222c1aec89ae6d44 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Mon, 15 Jun 2020 23:50:54 +0800
Subject: Update searching based on Fuse.js
---
layouts/partials/scripts-end.html | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html
index e5426ad..1cd0c62 100644
--- a/layouts/partials/scripts-end.html
+++ b/layouts/partials/scripts-end.html
@@ -1,13 +1,34 @@
+
+{{ if eq .Section "search" }}
+
+
+
+
+{{ else if eq .Section "archives" }}
+{{ else }}
-
+{{ end }}
+
{{ with .Params.player }}
+
{{ if eq .Section "search" }}
-
-
-
-
+
+
{{ else if eq .Section "archives" }}
{{ else }}
@@ -37,6 +18,7 @@
-
+
{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html
index 2959beb..83ce1d6 100644
--- a/layouts/partials/scripts-end.html
+++ b/layouts/partials/scripts-end.html
@@ -1,6 +1,5 @@
-
{{ if eq .Section "search" }}
@@ -10,9 +9,7 @@
{{ end }}
-
-
{{ with .Params.player }}
--
cgit v1.2.3
From 03750a600a71df1276ccfcc7c817de5cb86e3e9f Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Tue, 16 Jun 2020 15:42:19 +0800
Subject: Fix meta text align in archives and search page
---
layouts/partials/head.html | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 88f398f..88d3d19 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -9,7 +9,6 @@
{{ partial "favicon.html" . }}
-
{{ if and (.IsHome) (.Site.Params.subTitle) }}
{{ .Site.Title }} - {{ .Site.Params.subTitle }}
@@ -22,16 +21,13 @@
{{ end }}
{{ if or (.Params.description) (.Site.Params.description) }}
-
+
{{ end }}
{{ if .Params.tags }}
{{ end }}
-
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
-
{{ if .Site.Params.useHugoPipes }}
{{ $options := (dict "targetPath" "assets/css/fuji-custom.min.css" "outputStyle" "compressed") }}
@@ -40,17 +36,14 @@
{{ else }}
{{ end }}
-
{{ with .Site.Params.googleAdsense }}
{{ end}}
-
{{ if .Params.player }}
{{ end }}
{{ if .Site.Params.useDisqusJS }}
{{ end }}
-
{{ partial "analytic-gtag.html" . }}
{{ partial "analytic-cfga.html" . }}
\ No newline at end of file
--
cgit v1.2.3
From bcd4d3fdb1b5e6a6ede2dbc4ea64fc47642a2173 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Tue, 16 Jun 2020 16:29:16 +0800
Subject: Option darken image
---
layouts/partials/head.html | 1 +
layouts/partials/styles.html | 13 +++++++++++++
2 files changed, 14 insertions(+)
create mode 100644 layouts/partials/styles.html
(limited to 'layouts/partials')
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 88d3d19..1bcdf85 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -29,6 +29,7 @@
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
+{{ partial "styles.html" . }}
{{ if .Site.Params.useHugoPipes }}
{{ $options := (dict "targetPath" "assets/css/fuji-custom.min.css" "outputStyle" "compressed") }}
{{ $style := resources.Get "scss/fuji.scss" | resources.ToCSS $options }}
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html
new file mode 100644
index 0000000..cc6d930
--- /dev/null
+++ b/layouts/partials/styles.html
@@ -0,0 +1,13 @@
+{{ if ne .Site.Params.disableDarkImage true }}
+
+{{ end }}
\ No newline at end of file
--
cgit v1.2.3
From dfd5ecf0c2326147656a2306654175ca061e228e Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Wed, 17 Jun 2020 19:05:54 +0800
Subject: Move RSS link to config.toml
---
layouts/partials/sidebar.html | 3 ---
1 file changed, 3 deletions(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 7ead0e2..a730c0b 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -15,9 +15,6 @@
{{ .Name }}
{{ end }}
-
- RSS
-
--
cgit v1.2.3
From 1e3b01af7a026e215365c3c4625acd64a74215fe Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Thu, 18 Jun 2020 13:54:45 +0800
Subject: Update dependency
---
layouts/partials/scripts-end.html | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html
index 83ce1d6..37311b7 100644
--- a/layouts/partials/scripts-end.html
+++ b/layouts/partials/scripts-end.html
@@ -1,8 +1,7 @@
{{ if eq .Section "search" }}
-
-
+
{{ else if eq .Section "archives" }}
{{ else }}
--
cgit v1.2.3
From 5c68750e0cd265464aa55b1f1d89e54f7e71ccc0 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Thu, 18 Jun 2020 14:17:51 +0800
Subject: Optimize toc & license settings logic
---
layouts/partials/sidebar.html | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
(limited to 'layouts/partials')
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index a730c0b..af737ce 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,11 +1,13 @@