mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-03 22:22:00 +08:00
Merge pull request #1639 from jerryc127/dev
This commit is contained in:
4 files changed
+21
-8
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
.addtoany
|
.addtoany
|
||||||
.a2a_kit.a2a_kit_size_32.a2a_default_style
|
.a2a_kit.a2a_kit_size_32.a2a_default_style
|
||||||
- let addtoanyItem = theme.addtoany.item.split(',')
|
- let addtoanyItem = theme.share.addtoany.item.split(',')
|
||||||
each name in addtoanyItem
|
each name in addtoanyItem
|
||||||
a(class="a2a_button_" + name)
|
a(class="a2a_button_" + name)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "5.3.1",
|
"version": "5.3.2",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ hexo.extend.generator.register('post', locals => {
|
|||||||
previousIndexes.shift()
|
previousIndexes.shift()
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(defaultCover[index])
|
|
||||||
return defaultCover[index]
|
return defaultCover[index]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,9 +63,20 @@ hexo.extend.generator.register('post', locals => {
|
|||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
return locals.posts.sort('date').map(post => ({
|
// https://github.com/hexojs/hexo/blob/master/lib%2Fplugins%2Fgenerator%2Fpost.ts
|
||||||
|
const posts = locals.posts.sort('date').toArray()
|
||||||
|
const { length } = posts
|
||||||
|
|
||||||
|
return posts.map((post, i) => {
|
||||||
|
if (i) post.prev = posts[i - 1]
|
||||||
|
if (i < length - 1) post.next = posts[i + 1]
|
||||||
|
|
||||||
|
post.__post = true
|
||||||
|
|
||||||
|
return {
|
||||||
data: handleImg(post),
|
data: handleImg(post),
|
||||||
layout: 'post',
|
layout: 'post',
|
||||||
path: post.path
|
path: post.path
|
||||||
}))
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user