hexo-theme-volantis 5.7.1 → 5.7.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.7.2](https://github.com/volantis-x/hexo-theme-volantis/compare/v5.7.1...v5.7.2) (2022-08-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* fix Chinese urlencode displaying problem in permalink ([#794](https://github.com/volantis-x/hexo-theme-volantis/issues/794)) ([677b820](https://github.com/volantis-x/hexo-theme-volantis/commit/677b8207f7e0863470ffcb8fd9f287ca7ec1e9cf))
|
|
9
|
+
* 加引号处理herf属性中空格导致的地址错误 ([#796](https://github.com/volantis-x/hexo-theme-volantis/issues/796)) ([2bb4043](https://github.com/volantis-x/hexo-theme-volantis/commit/2bb4043bbf58eb6080e3e5743817ad4420409937))
|
|
10
|
+
|
|
3
11
|
## [5.7.1](https://github.com/volantis-x/hexo-theme-volantis/compare/v5.7.0...v5.7.1) (2022-07-26)
|
|
4
12
|
|
|
5
13
|
|
package/_config.yml
CHANGED
|
@@ -475,7 +475,7 @@ comments:
|
|
|
475
475
|
# Discuss
|
|
476
476
|
# https://discuss.js.org
|
|
477
477
|
discuss:
|
|
478
|
-
js: https://cdn.jsdelivr.net/npm/discuss/dist/
|
|
478
|
+
js: https://cdn.jsdelivr.net/npm/discuss/dist/discuss.js # 建议锁定版本
|
|
479
479
|
serverURLs: # Discuss server address url
|
|
480
480
|
# https://discuss.js.org/Quick-Start.html#path
|
|
481
481
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<article itemscope itemtype="http://schema.org/Article" class="article post white-box reveal md <%- theme.custom_css.body.effect.join(' ') %> article-type-<%= post.layout %>" id="<%= post.layout %>" itemscope itemprop="blogPost">
|
|
2
|
-
<link itemprop="mainEntityOfPage" href="<%- post.permalink %>">
|
|
2
|
+
<link itemprop="mainEntityOfPage" href="<%- decodeURI(post.permalink) %>">
|
|
3
3
|
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
|
|
4
4
|
<meta itemprop="name" content="<%- config.title %>">
|
|
5
5
|
</span>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
%>
|
|
70
70
|
<div class="copyright license">
|
|
71
71
|
<div class="license-title"><%- post.title %></div>
|
|
72
|
-
<div class="license-link"><a href="<%- page.permalink %>"><%- page.permalink %></a>
|
|
72
|
+
<div class="license-link"><a href="<%- decodeURI(page.permalink) %>"><%- decodeURI(page.permalink) %></a>
|
|
73
73
|
</div>
|
|
74
74
|
<div class="license-meta">
|
|
75
75
|
<div class="license-meta-item">
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<blockquote>
|
|
107
107
|
<% (footer_widget.copyright.content||[]).forEach(function(row){ %>
|
|
108
108
|
<% if (row == 'permalink') { %>
|
|
109
|
-
<p><%- footer_widget.copyright.permalink %><a href
|
|
109
|
+
<p><%- footer_widget.copyright.permalink %><a href="<%- decodeURI(page.permalink) %>"><%- decodeURI(page.permalink) %></a></p>
|
|
110
110
|
<% } else { %>
|
|
111
111
|
<%- markdown(row) %>
|
|
112
112
|
<% } %>
|
package/layout/_partial/post.ejs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="post post-v3 white-box reveal <%- theme.custom_css.body.effect.join(' ') %>" itemscope itemtype="http://schema.org/Article" >
|
|
2
|
-
<link itemprop="mainEntityOfPage" href="<%- post.permalink %>">
|
|
2
|
+
<link itemprop="mainEntityOfPage" href="<%- decodeURI(post.permalink) %>">
|
|
3
3
|
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
|
|
4
4
|
<meta itemprop="name" content="<%- config.title %>">
|
|
5
5
|
</span>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
path = defaultPath || decodeURI(window.location.pathname);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
discuss.init(Object.assign(Object.assign(<%- JSON.stringify(theme.comments.discuss) %>, {
|
|
17
17
|
el: '#discuss_container',
|
|
18
18
|
path: path,
|
|
19
19
|
ph: placeholder
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
load_discuss();
|
|
23
23
|
volantis.pjax.push(()=>{
|
|
24
|
-
if (typeof
|
|
24
|
+
if (typeof discuss == "undefined") {
|
|
25
25
|
load_discuss();
|
|
26
26
|
} else {
|
|
27
27
|
pjax_discuss();
|
package/package.json
CHANGED
|
@@ -123,10 +123,6 @@ if hexo-config('comments.service')=='twikoo'
|
|
|
123
123
|
.OwO-items-image
|
|
124
124
|
.OwO-item:hover
|
|
125
125
|
background-color: #252627 !important
|
|
126
|
-
|
|
127
|
-
if hexo-config('comments.service')=='discuss'
|
|
128
|
-
#Discuss .D-emot
|
|
129
|
-
background: #333841
|
|
130
126
|
|
|
131
127
|
// Custom Files
|
|
132
128
|
for $injects_dark in hexo-config('injects.dark')
|