mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
Merge branch 'dev' of https://github.com/jerryc127/hexo-theme-butterfly into dev
This commit is contained in:
@@ -195,6 +195,15 @@ reward:
|
|||||||
# link:
|
# link:
|
||||||
# text: alipay
|
# text: alipay
|
||||||
|
|
||||||
|
# Post edit
|
||||||
|
# Easily browse and edit blog source code online.
|
||||||
|
post_edit:
|
||||||
|
enable: false
|
||||||
|
# Link for view source
|
||||||
|
# url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name/
|
||||||
|
# Link for fork & edit
|
||||||
|
# url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/
|
||||||
|
|
||||||
# Related Articles
|
# Related Articles
|
||||||
related_post:
|
related_post:
|
||||||
enable: true
|
enable: true
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ post:
|
|||||||
copyright_notice: Copyright Notice
|
copyright_notice: Copyright Notice
|
||||||
copyright_content: 'All articles in this blog are licensed under <a href="%s">%s</a> unless stating additionally.'
|
copyright_content: 'All articles in this blog are licensed under <a href="%s">%s</a> unless stating additionally.'
|
||||||
recommend: Related Articles
|
recommend: Related Articles
|
||||||
|
edit: Edited on
|
||||||
|
|
||||||
search: Search
|
search: Search
|
||||||
algolia_search:
|
algolia_search:
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ post:
|
|||||||
copyright_notice: Copyright Notice
|
copyright_notice: Copyright Notice
|
||||||
copyright_content: 'All articles in this blog are licensed under <a href="%s">%s</a> unless stating additionally.'
|
copyright_content: 'All articles in this blog are licensed under <a href="%s">%s</a> unless stating additionally.'
|
||||||
recommend: Related Articles
|
recommend: Related Articles
|
||||||
|
edit: Edited on
|
||||||
|
|
||||||
search: Search
|
search: Search
|
||||||
algolia_search:
|
algolia_search:
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ post:
|
|||||||
copyright_content: '本博客所有文章除特别声明外,均采用
|
copyright_content: '本博客所有文章除特别声明外,均采用
|
||||||
<a href="%s" target="_blank">%s</a> 许可协议。转载请注明来自 <a href="%s" target="_blank">%s</a>!'
|
<a href="%s" target="_blank">%s</a> 许可协议。转载请注明来自 <a href="%s" target="_blank">%s</a>!'
|
||||||
recommend: 相关推荐
|
recommend: 相关推荐
|
||||||
|
edit: 编辑
|
||||||
|
|
||||||
search: 搜索
|
search: 搜索
|
||||||
algolia_search:
|
algolia_search:
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ post:
|
|||||||
copyright_content: '本部落格所有文章除特別聲明外,均採用
|
copyright_content: '本部落格所有文章除特別聲明外,均採用
|
||||||
<a href="%s" target="_blank">%s</a> 許可協議。轉載請註明來自 <a href="%s" target="_blank">%s</a>!'
|
<a href="%s" target="_blank">%s</a> 許可協議。轉載請註明來自 <a href="%s" target="_blank">%s</a>!'
|
||||||
recommend: 相關推薦
|
recommend: 相關推薦
|
||||||
|
edit: 編輯
|
||||||
|
|
||||||
search: 搜尋
|
search: 搜尋
|
||||||
algolia_search:
|
algolia_search:
|
||||||
|
|||||||
@@ -48,3 +48,6 @@ header#page-header(class=isHomeClass style=bg_img)
|
|||||||
else
|
else
|
||||||
#page-site-info
|
#page-site-info
|
||||||
h1#site-title=site_title
|
h1#site-title=site_title
|
||||||
|
if theme.post_edit.enable
|
||||||
|
a.post-edit-link(href=post_edit(page.source) title=_p('post.edit'))
|
||||||
|
i.fa.fa-pen-nib
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#post-info
|
#post-info
|
||||||
h1.post-title= page.title || _p('no_title')
|
h1.post-title= page.title || _p('no_title')
|
||||||
|
if theme.post_edit.enable
|
||||||
|
a.post-edit-link(href=post_edit(page.source) title=_p('post.edit'))
|
||||||
|
i.fa.fa-pen-nib
|
||||||
|
|
||||||
#post-meta
|
#post-meta
|
||||||
.meta-firstline
|
.meta-firstline
|
||||||
|
|||||||
@@ -70,3 +70,9 @@ hexo.extend.helper.register('injectHtml', function (data) {
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
})
|
})
|
||||||
|
|
||||||
|
hexo.extend.helper.register('post_edit', function(src) {
|
||||||
|
const { post_edit } = this.theme;
|
||||||
|
if (!post_edit.enable) return '';
|
||||||
|
return post_edit.url + src
|
||||||
|
})
|
||||||
@@ -84,6 +84,9 @@
|
|||||||
+maxWidth768()
|
+maxWidth768()
|
||||||
top: 7rem
|
top: 7rem
|
||||||
|
|
||||||
|
.post-edit-link
|
||||||
|
padding-left: 0.3rem
|
||||||
|
|
||||||
// post
|
// post
|
||||||
&.post-bg
|
&.post-bg
|
||||||
height: 20rem
|
height: 20rem
|
||||||
@@ -142,6 +145,9 @@
|
|||||||
+maxWidth768()
|
+maxWidth768()
|
||||||
font-size: 1.72em
|
font-size: 1.72em
|
||||||
|
|
||||||
|
.post-edit-link
|
||||||
|
padding-left: 0.3rem
|
||||||
|
|
||||||
#post-meta
|
#post-meta
|
||||||
color: var(--light-grey)
|
color: var(--light-grey)
|
||||||
font-size: 95%
|
font-size: 95%
|
||||||
@@ -193,6 +199,9 @@
|
|||||||
border-bottom: 1px solid var(--light-grey)
|
border-bottom: 1px solid var(--light-grey)
|
||||||
color: var(--text-highlight-color)
|
color: var(--text-highlight-color)
|
||||||
|
|
||||||
|
.post-edit-link
|
||||||
|
float: right
|
||||||
|
|
||||||
#post-meta,
|
#post-meta,
|
||||||
#post-meta a
|
#post-meta a
|
||||||
color: #78818a
|
color: #78818a
|
||||||
|
|||||||
Reference in New Issue
Block a user