mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
breaking changes: anchor設置更改,可單獨設置按鈕和自動更新anchor是否開啟,可設置button圖標,可設置button 總是顯示 closed #1025
improvement: 本地預覽,友情鏈接頁面刷新,內容不會重複顯示
This commit is contained in:
1 parent
c866315b87
commit
13cf15c369
7 files changed
+34
-23
No files matched your search
+6
-2
@@ -168,8 +168,12 @@ index_post_content:
|
|||||||
length: 500 # if you set method to 2 or 3, the length need to config
|
length: 500 # if you set method to 2 or 3, the length need to config
|
||||||
|
|
||||||
# anchor
|
# anchor
|
||||||
# when you scroll in post, the URL will update according to header id.
|
anchor:
|
||||||
anchor: false
|
button:
|
||||||
|
enable: false
|
||||||
|
always_show: false
|
||||||
|
icon: # the unicode value of Font Awesome icon, such as '\3423'
|
||||||
|
auto_update: false # when you scroll in post, the URL will update according to header id.
|
||||||
|
|
||||||
# Post
|
# Post
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
|
|||||||
@@ -120,5 +120,5 @@ script.
|
|||||||
},
|
},
|
||||||
isPhotoFigcaption: !{theme.photofigcaption},
|
isPhotoFigcaption: !{theme.photofigcaption},
|
||||||
islazyload: !{theme.lazyload.enable},
|
islazyload: !{theme.lazyload.enable},
|
||||||
isAnchor: !{theme.anchor}
|
isAnchor: !{theme.anchor.auto_update}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#article-container
|
#article-container
|
||||||
.flink
|
.flink
|
||||||
|
- let pageContent = page.content
|
||||||
if page.flink_url
|
if page.flink_url
|
||||||
script.
|
script.
|
||||||
(()=>{
|
(()=>{
|
||||||
@@ -63,6 +64,6 @@
|
|||||||
|
|
||||||
- result += `${className}${classDesc} <div class="flink-list">${listResult}</div>`
|
- result += `${className}${classDesc} <div class="flink-list">${listResult}</div>`
|
||||||
|
|
||||||
- page.content = result + page.content
|
- pageContent = result + pageContent
|
||||||
!= page.content
|
!= pageContent
|
||||||
|
|
||||||
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user