forked from anzhiyu-c/hexo-theme-anzhiyu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:anzhiyu-c/hexo-theme-anzhiyu into dev
- Loading branch information
Showing
22 changed files
with
147 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -882,7 +882,23 @@ translate: | |
readmode: true | ||
|
||
# 中控台 | ||
centerConsole: true | ||
centerConsole: | ||
enable: true | ||
card_tags: | ||
enable: false | ||
limit: 40 # if set 0 will show all | ||
color: false | ||
sort_order: # Don't modify the setting unless you know how it works | ||
highlightTags: | ||
# - Hexo | ||
# - 前端 | ||
card_archives: | ||
enable: false | ||
type: monthly # yearly or monthly | ||
format: MMMM YYYY # eg: YYYY年MM月 | ||
order: -1 # Sort of order. 1, asc for ascending; -1, desc for descending | ||
limit: 8 # if set 0 will show all | ||
sort_order: # Don't modify the setting unless you know how it works | ||
|
||
# dark mode | ||
darkmode: | ||
|
@@ -1054,6 +1070,7 @@ friends_vue: | |
enable: false | ||
vue_js: https://npm.elemecdn.com/[email protected]/friends/index.4f887d95.js | ||
apiurl: # 朋友圈后端地址 | ||
top_tips: 使用 友链朋友圈 订阅友链最新文章 | ||
top_background: | ||
|
||
# 深色模式粒子效果canvas | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
if site.data.essay | ||
each i in site.data.essay | ||
if i.home_essay | ||
- let onclick_value = theme.pjax.enable ? `pjax.loadUrl("/essay/");` : ''; | ||
- let href_value = theme.pjax.enable ? 'javascript:void(0);' : `/essay/`; | ||
#bbTimeList.bbTimeList.container | ||
i.anzhiyufont.anzhiyu-icon-jike.bber-logo.fontbold(onclick=`pjax.loadUrl("/essay/")`,title="即刻短文", aria-hidden="true") | ||
i.anzhiyufont.anzhiyu-icon-jike.bber-logo.fontbold(onclick=onclick_value, title="即刻短文", href=href_value, aria-hidden="true") | ||
#bbtalk.swiper-container.swiper-no-swiping.essay_bar_swiper_container(tabindex="-1") | ||
#bber-talk.swiper-wrapper(onclick=`pjax.loadUrl("/essay/")`) | ||
#bber-talk.swiper-wrapper(onclick=onclick_value) | ||
each i in site.data.essay | ||
each item, index in i.essay_list | ||
if index < 10 | ||
- var contentText = item.image ? item.content + ' [图片]' : (item.video ? item.content + ' [视频]' : item.content) | ||
.li-style.swiper-slide= contentText | ||
i.bber-gotobb.anzhiyufont.anzhiyu-icon-circle-arrow-right( onclick=`pjax.loadUrl("/essay/")`,title="查看全文") | ||
a.li-style.swiper-slide(href=href_value)= contentText | ||
a.bber-gotobb.anzhiyufont.anzhiyu-icon-circle-arrow-right( onclick=onclick_value, href=href_value, title="查看全文") | ||
|
||
script(src=url_for(theme.home_top.swiper.swiper_js)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if theme.centerConsole.card_archives.enable | ||
.card-archives | ||
- let type = theme.centerConsole.card_archives.type || 'monthly' | ||
- let format = theme.centerConsole.card_archives.format || 'MMMM YYYY' | ||
- let order = theme.centerConsole.card_archives.order || -1 | ||
- let limit = theme.centerConsole.card_archives.limit === 0 ? 0 : theme.centerConsole.card_archives.limit || 8 | ||
!= aside_archives({ type:type, format: format, order: order, limit: limit }) | ||
hr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
if theme.centerConsole.card_tags.enable | ||
if site.tags.length | ||
.card-tags | ||
.item-headline | ||
- let tagLimit = theme.centerConsole.card_tags.limit === 0 ? 0 : theme.centerConsole.card_tags.limit || 40 | ||
if theme.centerConsole.card_tags.color | ||
.card-tag-cloud!= cloudTags({source: site.tags, minfontsize: 1.05, maxfontsize: 1.05, limit: tagLimit, unit: 'rem', color: true, highlightTags: theme.centerConsole.card_tags.highlightTags}) | ||
else | ||
.card-tag-cloud!= cloudTags({source: site.tags, minfontsize: 1.05, maxfontsize: 1.05, limit: tagLimit, unit: 'rem', color: false, highlightTags: theme.centerConsole.card_tags.highlightTags}) | ||
hr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.