diff --git a/templates/album.html b/templates/album.html
index 84371b59..94961ce7 100644
--- a/templates/album.html
+++ b/templates/album.html
@@ -1,6 +1,6 @@
-
+
@@ -8,7 +8,7 @@
-
+
@@ -26,7 +26,7 @@
+ >
diff --git a/templates/archives.html b/templates/archives.html
index 74f4b889..8b9a19b9 100644
--- a/templates/archives.html
+++ b/templates/archives.html
@@ -1,12 +1,12 @@
-
+
-
+
diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js
index 9fefd0ec..10ab78af 100644
--- a/templates/assets/zhheo/blogex.js
+++ b/templates/assets/zhheo/blogex.js
@@ -168,17 +168,6 @@ function getContrastYIQ(hexcolor) {
}
}
-//导航栏文章
-function navTitle() {
- var titlevalue = document.title;
- var postName = document.getElementsByClassName("post-title")[0];
- if(postName==null || postName==''){
- document.getElementById("page-name-text").innerHTML = titlevalue;
- }else{
- document.getElementById("page-name-text").innerHTML = postName?.innerText;
- }
-}
-
window.onload = function () {
var copybtnlist = document.getElementsByClassName("copybtn")
for (var i = 0; i < copybtnlist.length; i++) {
@@ -662,7 +651,6 @@ function listenToPageInputPress() {
function initBlog() {
// 图片主色
GLOBAL_CONFIG.source.post.dynamicBackground && coverColor(),
- navTitle(),
percent(),
heo.topCategoriesBarScroll(),
heo.initIndexEssay(),
diff --git a/templates/bangumis.html b/templates/bangumis.html
index 71e659b4..641fd935 100644
--- a/templates/bangumis.html
+++ b/templates/bangumis.html
@@ -1,13 +1,13 @@
-
+
-
+
diff --git a/templates/categories.html b/templates/categories.html
index 39828308..4e3f4146 100644
--- a/templates/categories.html
+++ b/templates/categories.html
@@ -1,12 +1,12 @@
-
+
-
+
diff --git a/templates/category.html b/templates/category.html
index e867d67f..1bcfb8d3 100644
--- a/templates/category.html
+++ b/templates/category.html
@@ -1,11 +1,12 @@
-
+
-
+
diff --git a/templates/comments.html b/templates/comments.html
index 0d318213..2c3ea39c 100644
--- a/templates/comments.html
+++ b/templates/comments.html
@@ -1,16 +1,14 @@
-
+
-
-
-
+
diff --git a/templates/equipment.html b/templates/equipment.html
index de16b99b..01244871 100644
--- a/templates/equipment.html
+++ b/templates/equipment.html
@@ -1,6 +1,6 @@
-
+
@@ -8,7 +8,7 @@
-
+
diff --git a/templates/fcircle.html b/templates/fcircle.html
index bb978bbd..6b4d8b9b 100644
--- a/templates/fcircle.html
+++ b/templates/fcircle.html
@@ -1,6 +1,6 @@
-
+
@@ -8,7 +8,7 @@
-
+
diff --git a/templates/index.html b/templates/index.html
index 2c42bc07..f717c7ac 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,13 +1,13 @@
-
+
-
+
diff --git a/templates/links.html b/templates/links.html
index c92861d8..a225c855 100644
--- a/templates/links.html
+++ b/templates/links.html
@@ -1,11 +1,11 @@
-
+
-
+
diff --git a/templates/modules/common/diytitle.html b/templates/modules/common/diytitle.html
index b03791d3..c25ef281 100644
--- a/templates/modules/common/diytitle.html
+++ b/templates/modules/common/diytitle.html
@@ -5,7 +5,7 @@
th:if="${theme.config.other.diytitle.diytitleEnable}">
let leaveTitle = '[[${theme.config.other.diytitle.leaveTitle}]]';
let backTitle = '[[${theme.config.other.diytitle.backTitle}]]';
- let OriginTitile = document.title
+ let OriginTitile = "[(${title})]"
let titleTime
document.addEventListener('visibilitychange', function () {
if (document.hidden) {
diff --git a/templates/modules/head.html b/templates/modules/head.html
index 8c1cdb9b..07c9cf70 100644
--- a/templates/modules/head.html
+++ b/templates/modules/head.html
@@ -1,11 +1,10 @@
-
+
-
{
- let title = ''
-
- switch ([[${ htmlType }]]) {
- case 'post':
- if (GLOBAL_CONFIG.postTitle != '')
- title = GLOBAL_CONFIG.postTitle
- break;
- case 'page':
- if (GLOBAL_CONFIG.postTitle != '')
- title = GLOBAL_CONFIG.postTitle
- break;
- case 'archive':
- title = '归档'
- break;
- case 'category':
- title = '分类'
- break;
- case 'links':
- title = '友链'
- break;
- case 'tag':
- title = '标签'
- break;
- case 'moments':
- title = '瞬间'
- break;
- case 'fcircle':
- title = '友链鱼塘'
- break;
- case 'about':
- title = '关于'
- break;
- case '404':
- title = '页面没有找到'
- break;
- case 'music':
- title = '音乐馆'
- break;
- case 'photos':
- title = '图库'
- break;
- case 'bangumis':
- title = '追番'
- break;
- }
- if (title != '')
- document.title = title + ' - ' + [[${ site.title }]]
- }
-
- (() => {
- setTitle()
- })()
-
@@ -342,6 +286,6 @@
-
+
diff --git a/templates/modules/layouts/layout.html b/templates/modules/layouts/layout.html
index 8f122af9..697b35f3 100644
--- a/templates/modules/layouts/layout.html
+++ b/templates/modules/layouts/layout.html
@@ -1,5 +1,5 @@
-
-
+
+
+
@@ -110,13 +111,13 @@
-
-
-
-
+
@@ -8,7 +8,7 @@
-
+
+
+
+
diff --git a/templates/modules/nav.html b/templates/modules/nav.html
index d772a794..e10d3c57 100644
--- a/templates/modules/nav.html
+++ b/templates/modules/nav.html
@@ -5,10 +5,11 @@
-
diff --git a/templates/moments.html b/templates/moments.html
index f0d0f47c..27be8cf4 100644
--- a/templates/moments.html
+++ b/templates/moments.html
@@ -1,6 +1,6 @@
-
+
diff --git a/templates/music.html b/templates/music.html
index a626bee7..8f1c78fd 100644
--- a/templates/music.html
+++ b/templates/music.html
@@ -1,13 +1,13 @@
-
+
-
+
diff --git a/templates/page.html b/templates/page.html
index 5f5a93ad..48a82efd 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,5 +1,6 @@
-
+
@@ -7,7 +8,7 @@
-
+
diff --git a/templates/page_links.html b/templates/page_links.html
index 121349ea..d4a8a767 100644
--- a/templates/page_links.html
+++ b/templates/page_links.html
@@ -1,11 +1,11 @@
-
+
-
+
diff --git a/templates/photos.html b/templates/photos.html
index 46a71695..c3fa3e4c 100644
--- a/templates/photos.html
+++ b/templates/photos.html
@@ -1,13 +1,13 @@
-
+
-
+
diff --git a/templates/post.html b/templates/post.html
index 168efc61..f7936e98 100644
--- a/templates/post.html
+++ b/templates/post.html
@@ -1,6 +1,6 @@
-
+
diff --git a/templates/tag.html b/templates/tag.html
index 9a5434b4..e69759bb 100644
--- a/templates/tag.html
+++ b/templates/tag.html
@@ -1,12 +1,12 @@
-
+
-
+
diff --git a/templates/tags.html b/templates/tags.html
index c5a56800..526d7c87 100644
--- a/templates/tags.html
+++ b/templates/tags.html
@@ -1,12 +1,12 @@
-
+
-
+