mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
✨ feat: 增加頁面加載動畫preloader close #193 ✨ feat: 適配hexo-generator-indexed插件 ✨ feat: aside subtitle可配置,優先顯示配置內容、沒有的顯示頁面subtitle close #191 ✨ feat: aside card-tags可配置是否顯示顏色 ✨ feat: algolia-search highligh文字加深 ✨ feat: 增加頁面keywords設置 #191 ✨ feat: darkmode和readmode配色微調 🐛 fix: 修復hide-block 配置顏色顯示出錯的bug 🐛 fix: 修正zh-TW部分用語
74 lines
2.2 KiB
Plaintext
74 lines
2.2 KiB
Plaintext
script(src=url_for(theme.CDN.jquery))
|
|
script(src=url_for(theme.CDN.utils))
|
|
script(src=url_for(theme.CDN.main))
|
|
|
|
if theme.translate && theme.translate.enable
|
|
script(src=url_for(theme.CDN.translate))
|
|
|
|
if (theme.medium_zoom && theme.medium_zoom.enable)
|
|
script(src=url_for(theme.CDN.medium_zoom))
|
|
|
|
if (theme.fancybox && theme.fancybox.enable)
|
|
script(src=url_for(theme.CDN.fancybox))
|
|
|
|
include ./math/index.pug
|
|
|
|
if theme.fireworks && theme.fireworks.enable
|
|
script(src=url_for(theme.CDN.anime))
|
|
script(src=url_for(theme.CDN.fireworks))
|
|
|
|
if (theme.snackbar && theme.snackbar.enable)
|
|
script(src=url_for(theme.CDN.snackbar))
|
|
|
|
if (theme.canvas_ribbon && theme.canvas_ribbon.enable)
|
|
include ./third-party/canvas-ribbon.pug
|
|
|
|
if (theme.canvas_ribbon_piao && theme.canvas_ribbon_piao.enable)
|
|
include ./third-party/canvas-ribbon-piao.pug
|
|
|
|
if (theme.canvas_nest && theme.canvas_nest.enable)
|
|
include ./third-party/canvas-nest.pug
|
|
|
|
if theme.activate_power_mode.enable
|
|
script(src=url_for(theme.CDN.activate_power_mode))
|
|
script.
|
|
POWERMODE.colorful = #{theme.activate_power_mode.colorful};
|
|
POWERMODE.shake = #{theme.activate_power_mode.shake};
|
|
document.body.addEventListener('input', POWERMODE);
|
|
|
|
if theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv
|
|
script(async src=url_for(theme.CDN.busuanzi))
|
|
|
|
if theme.instantpage.enable
|
|
script(src=url_for(theme.CDN.instantpage) type="module")
|
|
|
|
if theme.lazyload.enable
|
|
script(src=url_for(theme.CDN.lazyload) async="")
|
|
|
|
//- 鼠標特效
|
|
if theme.click_heart && theme.click_heart.enable
|
|
script(src=url_for(theme.CDN.click_heart))
|
|
|
|
if theme.ClickShowText && theme.ClickShowText.enable
|
|
script(src=url_for(theme.CDN.ClickShowText))
|
|
|
|
if theme.pangu && theme.pangu.enable
|
|
include ./third-party/pangu.pug
|
|
|
|
//- search
|
|
if theme.algolia_search && theme.algolia_search.enable
|
|
script(src=url_for(theme.CDN.algolia_js))
|
|
else if theme.local_search && theme.local_search.enable
|
|
script(src=url_for(theme.CDN.local_search))
|
|
|
|
//- mermaid
|
|
if theme.mermaid.enable
|
|
include ./math/mermaid.pug
|
|
|
|
if is_home()
|
|
include ./head/subtitle.pug
|
|
|
|
!=fragment_cache('injectBottom', function(){return injectHtml(theme.inject.bottom)})
|
|
|
|
if theme.preloader
|
|
!=partial('includes/loading/loading-js', {}, {cache:theme.fragment_cache}) |