hexo-theme-shokax 0.0.4 → 0.0.5
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/layout/_partials/sidebar/menu.pug +4 -3
- package/layout/archive.pug +1 -1
- package/layout/category.pug +1 -1
- package/layout/page.pug +0 -1
- package/layout/post.pug +1 -1
- package/layout/tag.pug +1 -1
- package/package.json +1 -1
- package/source/js/_app/library.js +1 -1
@@ -21,9 +21,10 @@ mixin item(name, path, parent, dropdown, sublist)
|
|
21
21
|
- var menuText = __('menu.' + subname).replace('menu.', '')
|
22
22
|
if subname == 'default'
|
23
23
|
- var menuText = __('menu.' + name).replace('menu.', '')
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
else
|
25
|
+
- var menuIcon = '<i class="ic i-' + trimn(path[1]) + '"></i>'
|
26
|
+
li(class="item")
|
27
|
+
!= _url(itemURL, menuIcon + menuText, {rel: 'section'})
|
27
28
|
else
|
28
29
|
li(class="item")
|
29
30
|
!= _url(itemURL, menuIcon + menuText, {rel: 'section'})
|
package/layout/archive.pug
CHANGED
package/layout/category.pug
CHANGED
package/layout/page.pug
CHANGED
package/layout/post.pug
CHANGED
package/layout/tag.pug
CHANGED
package/package.json
CHANGED
@@ -167,7 +167,7 @@ const assetUrl = function (asset, type) {
|
|
167
167
|
return `https://cdn.jsdelivr.net/${str}`;
|
168
168
|
}
|
169
169
|
if (str.indexOf('npm') > -1) {
|
170
|
-
return `https://
|
170
|
+
return `https://cdn.jsdelivr.net/${str}`;
|
171
171
|
}
|
172
172
|
if (str.indexOf('http') > -1) {
|
173
173
|
return str;
|