mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 14:07:06 +08:00
remove: 刪除部分多餘的代碼
This commit is contained in:
@@ -194,15 +194,14 @@ reward:
|
|||||||
# - img: /img/alipay.jpg
|
# - img: /img/alipay.jpg
|
||||||
# link:
|
# link:
|
||||||
# text: alipay
|
# text: alipay
|
||||||
|
|
||||||
# Post edit
|
# Post edit
|
||||||
# Easily browse and edit blog source code online.
|
# Easily browse and edit blog source code online.
|
||||||
post_edit:
|
post_edit:
|
||||||
enable: false
|
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/
|
# url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/
|
||||||
|
# For example: https://github.com/jerryc127/butterfly.js.org/edit/main/source/
|
||||||
|
url:
|
||||||
|
|
||||||
# Related Articles
|
# Related Articles
|
||||||
related_post:
|
related_post:
|
||||||
|
|||||||
@@ -47,7 +47,4 @@ header#page-header(class=isHomeClass style=bg_img)
|
|||||||
i.fas.fa-angle-down.scroll-down-effects
|
i.fas.fa-angle-down.scroll-down-effects
|
||||||
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,7 +1,7 @@
|
|||||||
#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
|
if theme.post_edit.enable
|
||||||
a.post-edit-link(href=post_edit(page.source) title=_p('post.edit'))
|
a.post-edit-link(href=theme.post_edit.url + page.source title=_p('post.edit') target="_blank")
|
||||||
i.fa.fa-pen-nib
|
i.fa.fa-pen-nib
|
||||||
|
|
||||||
#post-meta
|
#post-meta
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "3.6.0-b4",
|
"version": "3.6.0-b5",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -70,9 +70,3 @@ 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,9 +84,6 @@
|
|||||||
+maxWidth768()
|
+maxWidth768()
|
||||||
top: 7rem
|
top: 7rem
|
||||||
|
|
||||||
.post-edit-link
|
|
||||||
padding-left: 0.3rem
|
|
||||||
|
|
||||||
// post
|
// post
|
||||||
&.post-bg
|
&.post-bg
|
||||||
height: 20rem
|
height: 20rem
|
||||||
@@ -144,9 +141,9 @@
|
|||||||
|
|
||||||
+maxWidth768()
|
+maxWidth768()
|
||||||
font-size: 1.72em
|
font-size: 1.72em
|
||||||
|
|
||||||
.post-edit-link
|
.post-edit-link
|
||||||
padding-left: 0.3rem
|
padding-left: .5rem
|
||||||
|
|
||||||
#post-meta
|
#post-meta
|
||||||
color: var(--light-grey)
|
color: var(--light-grey)
|
||||||
@@ -201,7 +198,7 @@
|
|||||||
|
|
||||||
.post-edit-link
|
.post-edit-link
|
||||||
float: right
|
float: right
|
||||||
|
|
||||||
#post-meta,
|
#post-meta,
|
||||||
#post-meta a
|
#post-meta a
|
||||||
color: #78818a
|
color: #78818a
|
||||||
|
|||||||
Reference in New Issue
Block a user