From 8009dfd8f5d33211a07d01319715fc3993979138 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Sun, 31 May 2020 16:31:27 +0800
Subject: Scripts adjustment
---
README.md | 2 +-
README_CN.md | 4 +-
layouts/partials/analytic-cfga.html | 2 +-
layouts/partials/analytic-gtag.html | 2 +-
layouts/partials/head.html | 10 +--
layouts/partials/scripts-end.html | 152 ++----------------------------------
layouts/partials/scripts-front.html | 6 +-
package.json | 9 ++-
static/assets/js/fuji.dev.js | 130 ++++++++++++++++++++++++++++++
9 files changed, 153 insertions(+), 164 deletions(-)
create mode 100644 static/assets/js/fuji.dev.js
diff --git a/README.md b/README.md
index 74d3ca2..093748a 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markdown style.
-   
+   
[English](https://github.com/amzrk2/hugo-theme-fuji#readme) | [白话文](https://github.com/amzrk2/hugo-theme-fuji/blob/master/README_CN.md)
diff --git a/README_CN.md b/README_CN.md
index 38c36f7..0c199a8 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -2,7 +2,7 @@
简单的 Hugo 主题,支持夜间模式,Markdown 是蹭的 GitHub Primer。萌新一个啥也不会,有问题尽管提(
-   
+   
[English](https://github.com/amzrk2/hugo-theme-fuji#readme) | [白话文](https://github.com/amzrk2/hugo-theme-fuji/blob/master/README_CN.md)
@@ -19,7 +19,7 @@
- [放大图片;网慢,要 lazyload](#放大图片网慢要-lazyload)
- [Markdown 钩子](#markdown-钩子)
- [这字体也太丑了,换掉](#这字体也太丑了换掉)
- - [自定义 highlight.js 支持的语言]()
+ - [自定义 highlight.js 支持的语言](#自定义-highlightjs-支持的语言)
- [Disqus identifier](#disqus-identifier)
- [批判一番](#批判一番)
- [License](#license)
diff --git a/layouts/partials/analytic-cfga.html b/layouts/partials/analytic-cfga.html
index ee7567e..63db4d6 100644
--- a/layouts/partials/analytic-cfga.html
+++ b/layouts/partials/analytic-cfga.html
@@ -3,5 +3,5 @@
window.ga_tid = '{{ .Site.Params.googleAnalyticsTid }}';
window.ga_api = '{{ .Site.Params.googleAnalyticsRoute }}';
-
+
{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/analytic-gtag.html b/layouts/partials/analytic-gtag.html
index f43e48a..f851745 100644
--- a/layouts/partials/analytic-gtag.html
+++ b/layouts/partials/analytic-gtag.html
@@ -1,6 +1,5 @@
{{ with .Site.GoogleAnalytics }}
-
+
{{ end }}
\ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d4b610c..f648160 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -38,18 +38,10 @@
{{ $style := $sass | resources.ToCSS $options }}
-
-
-
+
-{{ if .Site.Params.customHighlight }}
-
-{{ else }}
-
-{{ end }}
{{ if .Params.playerURL }}
-
{{ end }}
{{ partial "analytic-gtag.html" . }}
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html
index 39b3a00..220ee93 100644
--- a/layouts/partials/scripts-end.html
+++ b/layouts/partials/scripts-end.html
@@ -1,152 +1,14 @@
-
-
-
-
-{{ if and (and (ne .Params.noComments true) (.IsPage)) (.Site.Params.utterancesRepo) }}
-
-{{ else if and (and (ne .Params.noComments true) (.IsPage)) (.Site.Params.disqusShortname) }}
-
+
+
+{{ if .Site.Params.customHighlight }}
+
{{ else }}
-
+
{{ end }}
+
{{ with .Params.playerURL }}
+