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
@@ -1,6 +1,6 @@
1
1
  ######## Stellar info ########
2
2
  stellar:
3
- version: '1.26.0'
3
+ version: '1.26.1'
4
4
  homepage: 'https://xaoxuu.com/wiki/stellar/'
5
5
  repo: 'https://github.com/xaoxuu/hexo-theme-stellar'
6
6
  cdn_css: # Use cdn links instead of /css/main.css
@@ -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 += (post.title || post.wiki) + '</span>';
43
+ el += post.title + '</span>';
43
44
  if (isActive) {
44
45
  el += icon('default:bookmark.active')
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-stellar",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "description": "Elegant and powerful theme for Hexo.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -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]
@@ -6,4 +6,4 @@ svg.icon
6
6
  overflow: hidden
7
7
 
8
8
  svg.active-icon
9
- color: $c-green
9
+ color: $color-theme
@@ -32,5 +32,9 @@
32
32
  background: none
33
33
  padding: 0
34
34
  margin: 0
35
+ .highlight, pre:not([class]):has(>code)
36
+ background: var(--alpha50)
37
+
35
38
 
36
-
39
+ .tag-plugin.timeline[api] .body .footer
40
+ background: none