hexo-theme-stellar 1.26.0 → 1.26.1
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
function layoutDiv() {
|
|
3
3
|
var el = ''
|
|
4
4
|
el += `<nav class="menu dis-select${where == 'main' ? ' mobile-hidden' : ''}">`
|
|
5
|
-
for (let item of theme.menubar.items) {
|
|
5
|
+
for (let item of (theme.menubar.items || [])) {
|
|
6
6
|
if (item == undefined || item.id == null || item.url == null) {
|
|
7
7
|
continue
|
|
8
8
|
}
|
|
@@ -25,7 +25,8 @@ function layoutDiv() {
|
|
|
25
25
|
arr = site.posts.filter( p => p.title && p.title.length > 0)
|
|
26
26
|
arr = arr.sort("updated", -1)
|
|
27
27
|
}
|
|
28
|
-
el += '<div class="widget-body fs14">'
|
|
28
|
+
el += '<div class="widget-body fs14">'
|
|
29
|
+
arr = arr.filter(p => p.title?.length > 0)
|
|
29
30
|
arr.length = item.limit
|
|
30
31
|
arr.forEach(post => {
|
|
31
32
|
if (!post) { return }
|
|
@@ -39,7 +40,7 @@ function layoutDiv() {
|
|
|
39
40
|
el += '<strong>' + name + '</strong>' + '<span class="dot"></span>';
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
el +=
|
|
43
|
+
el += post.title + '</span>';
|
|
43
44
|
if (isActive) {
|
|
44
45
|
el += icon('default:bookmark.active')
|
|
45
46
|
}
|
package/package.json
CHANGED
|
@@ -21,6 +21,9 @@ function getWikiObject(ctx) {
|
|
|
21
21
|
const data = ctx.locals.get('data')
|
|
22
22
|
var list = []
|
|
23
23
|
for (let key of Object.keys(data)) {
|
|
24
|
+
if (key.endsWith('.DS_Store')) {
|
|
25
|
+
continue
|
|
26
|
+
}
|
|
24
27
|
if (key.includes('wiki/') && key.length > 5) {
|
|
25
28
|
let newKey = key.replace('wiki/', '')
|
|
26
29
|
let obj = data[key]
|