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 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.28.0/
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.6.3/
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.7/
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
@@ -9,7 +9,7 @@ page.banner_mask_alpha = theme.page404.banner_mask_alpha
9
9
 
10
10
  <script>
11
11
  function redirect() {
12
- location.href = "/";
12
+ location.href = "<%- url_for('/') %>";
13
13
  }
14
14
 
15
15
  <% if (theme.page404.redirect_delay) { %>
@@ -1,5 +1,8 @@
1
1
  <% if ((!is_post() && !is_page()) || (is_post() && theme.post.comments.enable && page.comments) || (is_page() && page.comments)) { %>
2
- <article id="comments">
3
- <%- partial('_partials/comments/' + (typeof page.comment === 'string' && page.comment !== '' ? page.comment : theme.post.comments.type)) %>
4
- </article>
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
- <%- text %>
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
- <%- subText %>
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
- <%- text %>
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
- &nbsp;<i class="iconfont icon-search"></i>&nbsp;
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">&nbsp;<i
63
- class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
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"><i class="iconfont icon-list"></i>&nbsp;<%- __('post.toc') %></p>
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-fluid",
3
- "version": "1.9.3",
3
+ "version": "1.9.4",
4
4
  "description": "An elegant Material-Design theme for Hexo.",
5
5
  "main": "package.json",
6
6
  "files": [
@@ -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
 
@@ -14,7 +14,7 @@ Fluid.plugins = {
14
14
  var typed = new window.Typed('#subtitle', {
15
15
  strings: [
16
16
  ' ',
17
- text + '&nbsp;'
17
+ text
18
18
  ],
19
19
  cursorChar: CONFIG.typing.cursorChar,
20
20
  typeSpeed : CONFIG.typing.typeSpeed,