hexo-theme-fluid 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_config.yml +3 -3
- package/layout/404.ejs +1 -1
- package/layout/_partials/comments.ejs +6 -3
- package/layout/_partials/header/navigation.ejs +7 -6
- package/layout/_partials/post/toc.ejs +4 -1
- package/package.json +1 -1
- package/source/css/_pages/_base/_widget/header.styl +6 -0
- package/source/js/color-schema.js +4 -0
- package/source/js/plugins.js +1 -1
package/_config.yml
CHANGED
|
@@ -1060,7 +1060,7 @@ static_prefix:
|
|
|
1060
1060
|
|
|
1061
1061
|
bootstrap: https://lib.baomitu.com/twitter-bootstrap/4.6.1/
|
|
1062
1062
|
|
|
1063
|
-
prismjs: https://lib.baomitu.com/prism/1.
|
|
1063
|
+
prismjs: https://lib.baomitu.com/prism/1.29.0/
|
|
1064
1064
|
|
|
1065
1065
|
tocbot: https://lib.baomitu.com/tocbot/4.18.2/
|
|
1066
1066
|
|
|
@@ -1082,12 +1082,12 @@ static_prefix:
|
|
|
1082
1082
|
|
|
1083
1083
|
valine: https://lib.baomitu.com/valine/1.5.1/
|
|
1084
1084
|
|
|
1085
|
-
waline: https://lib.baomitu.com/waline/2.
|
|
1085
|
+
waline: https://lib.baomitu.com/waline/2.14.1/
|
|
1086
1086
|
|
|
1087
1087
|
gitalk: https://lib.baomitu.com/gitalk/1.8.0/
|
|
1088
1088
|
|
|
1089
1089
|
disqusjs: https://lib.baomitu.com/disqusjs/1.3.0/
|
|
1090
1090
|
|
|
1091
|
-
twikoo: https://lib.baomitu.com/twikoo/1.6.
|
|
1091
|
+
twikoo: https://lib.baomitu.com/twikoo/1.6.8/
|
|
1092
1092
|
|
|
1093
1093
|
hint: https://lib.baomitu.com/hint.css/2.7.0/
|
package/layout/404.ejs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<% if ((!is_post() && !is_page()) || (is_post() && theme.post.comments.enable && page.comments) || (is_page() && page.comments)) { %>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<% var commentType = typeof page.comment === 'string' && page.comment !== '' ? page.comment : theme.post.comments.type %>
|
|
3
|
+
<% if (commentType) { %>
|
|
4
|
+
<article id="comments">
|
|
5
|
+
<%- partial('_partials/comments/' + commentType) %>
|
|
6
|
+
</article>
|
|
7
|
+
<% } %>
|
|
5
8
|
<% } %>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<a class="nav-link dropdown-toggle" target="_self" href="javascript:;" role="button"
|
|
25
25
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
26
26
|
<%- each.icon ? '<i class="' + each.icon + '"></i>' : '' %>
|
|
27
|
-
|
|
27
|
+
<span><%- text %></span>
|
|
28
28
|
</a>
|
|
29
29
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
30
30
|
<% for(const subEach of each.submenu || []) { %>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
} %>
|
|
36
36
|
<a class="dropdown-item" href="<%= url_for(subEach.link) %>">
|
|
37
37
|
<%- subEach.icon ? '<i class="' + subEach.icon + '"></i>' : '' %>
|
|
38
|
-
|
|
38
|
+
<span><%- subText %></span>
|
|
39
39
|
</a>
|
|
40
40
|
<% } %>
|
|
41
41
|
</div>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<li class="nav-item">
|
|
45
45
|
<a class="nav-link" href="<%= url_for(each.link) %>">
|
|
46
46
|
<%- each.icon ? '<i class="' + each.icon + '"></i>' : '' %>
|
|
47
|
-
|
|
47
|
+
<span><%- text %></span>
|
|
48
48
|
</a>
|
|
49
49
|
</li>
|
|
50
50
|
<% } %>
|
|
@@ -52,15 +52,16 @@
|
|
|
52
52
|
<% if(theme.search.enable) { %>
|
|
53
53
|
<li class="nav-item" id="search-btn">
|
|
54
54
|
<a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
|
|
55
|
-
|
|
55
|
+
<i class="iconfont icon-search"></i>
|
|
56
56
|
</a>
|
|
57
57
|
</li>
|
|
58
58
|
<% import_js(theme.static_prefix.internal_js, 'local-search.js') %>
|
|
59
59
|
<% } %>
|
|
60
60
|
<% if(theme.dark_mode && theme.dark_mode.enable) { %>
|
|
61
61
|
<li class="nav-item" id="color-toggle-btn">
|
|
62
|
-
<a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle"
|
|
63
|
-
|
|
62
|
+
<a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
|
|
63
|
+
<i class="iconfont icon-dark" id="color-toggle-icon"></i>
|
|
64
|
+
</a>
|
|
64
65
|
</li>
|
|
65
66
|
<% } %>
|
|
66
67
|
</ul>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<div id="toc">
|
|
2
|
-
<p class="toc-header"
|
|
2
|
+
<p class="toc-header">
|
|
3
|
+
<i class="iconfont icon-list"></i>
|
|
4
|
+
<span><%- __('post.toc') %></span>
|
|
5
|
+
</p>
|
|
3
6
|
<div class="toc-body" id="toc-body"></div>
|
|
4
7
|
</div>
|
|
5
8
|
|
package/package.json
CHANGED
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
i
|
|
26
26
|
font-size 0.875rem
|
|
27
27
|
|
|
28
|
+
i:only-child
|
|
29
|
+
margin 0 .2rem
|
|
30
|
+
|
|
28
31
|
.navbar-toggler
|
|
29
32
|
border-width 0
|
|
30
33
|
outline 0
|
|
@@ -155,6 +158,9 @@
|
|
|
155
158
|
width 80%
|
|
156
159
|
overflow-wrap break-word
|
|
157
160
|
|
|
161
|
+
.typed-cursor
|
|
162
|
+
margin 0 .2rem
|
|
163
|
+
|
|
158
164
|
@media (max-width: 767px)
|
|
159
165
|
#subtitle, .typed-cursor
|
|
160
166
|
font-size 1.5rem
|
|
@@ -176,6 +176,10 @@
|
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
+
if (document.documentElement.getAttribute('data-user-color-scheme')) {
|
|
180
|
+
var color = getComputedStyle(document.documentElement).getPropertyValue('--navbar-bg-color').trim()
|
|
181
|
+
document.querySelector('meta[name="theme-color"]').setAttribute('content', color)
|
|
182
|
+
}
|
|
179
183
|
}
|
|
180
184
|
}
|
|
181
185
|
|