Closed GamerNoTitle closed 4 years ago
main.js 没有用lozad啊
你要不clean下再看看?
旧版本升级到新版本要更改设置 即 配置_CONGIF.yml文件,然后把内容复制到butterfly.yml去。。不然会报错
如果问题还在,建议重新下一遍主题
重新clone了一次主题,本地调试的时候可以,但是部署到网上就不行了。。。
以下是主题配置:
menu: Home: /||fa fa-home Archives: /archives/||fa fa-archive Tags||fa fa-tags:
Github: https://github.com/GamerNoTitle/||fa fa-github
RSS: /atom.xml||fa fa-rss Donate: /Donate/||fa fa-credit-card-alt Link: /link/||fa fa-link About: /About/||fa fa-heart
favicon: /img/favicon.png
highlight_theme: light highlight_copy: false #代碼複製按鈕 highlight_lang: true #代碼語言顯示 highlight_shrink: false #代碼框不展開,需點擊 '>' 打開
code_word_wrap: false
copy: enable: true # true 開啓 / false 禁止 copyright: true
social: fa fa-github: https://github.com/GamerNoTitle fa fa-cloud: http://skin.bili33.top:8080/ fa fa-television: https://space.bilibili.com/44666814
fa fa-rss: /atom.xml
algolia_search: enable: false hits: per_page: 6
labels: input_placeholder: Search for Posts hits_empty: "We didn't find any results for the search: ${query}" # if there are no result hits_stats: "${hits} results found in ${time} ms"
local_search: enable: false labels: input_placeholder: Search for Posts hits_empty: "We didn't find any results for the search: ${query}" # if there are no result
mathjax: enable: false
katex: enable: false hide_scrollbar: true
google_analytics: UA-138072700-2
avatar: https://cdn.bili33.workers.dev/GamerNoTitle/GamerNoTitle.github.io/master/img/favicon.png
top_img: https://cdn.bili33.workers.dev/GamerNoTitle/Picture-repo/master/Top-img/NEKO-Hackers-Edited.jpg
default_top_img: https://cdn.bili33.workers.dev/GamerNoTitle/Picture-repo/master/Top-img/NEKO-Hackers-Edited.jpg
default_cover: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/cover/default_bg.png
archive_img: https://cdn.bili33.workers.dev/GamerNoTitle/Picture-repo/master/Top-img/NEKO-Hackers-Edited.jpg
tag_img: https://cdn.bili33.workers.dev/GamerNoTitle/Picture-repo/master/Top-img/NEKO-Hackers-Edited.jpg
category_img: https://cdn.bili33.workers.dev/GamerNoTitle/Picture-repo/master/Top-img/NEKO-Hackers-Edited.jpg
movies_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN/Photo/movie.jpg
lodding_bg: flink: /img/friend_404.gif post_page: https://cdn.bili33.workers.dev/GamerNoTitle/Picture-repo/master/404/404.png
post_meta: date_type: both # or created or updated 文章日期是创建日或者更新日或都显示 categories: true # or false 是否显示分类 tags: true # or false 是否显示标签
wordcount: enable: true
toc: enable: true number: true
auto_open_sidebar: enable: true
post_copyright: enable: true license: CC BY-NC-SA 4.0 license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/
auto_excerpt: enable: true length: 150
addThis: enable: false pubid:
sharejs: enable: true sites: facebook,twitter,wechat,weibo,qq
addtoany: enable: false item:
valine: enable: true # if you want use valine,please set this value is true appId: wRUW5fICAL8URzxXwJNSiwA7-MdYXbMMI # leancloud application app id appKey: LbtRzTQKxCWNpj30GLH3sw5j # leancloud application app key notify: true # valine mail notify (true/false) https://github.com/xCss/Valine/wiki verify: true # valine verify code (true/false) pageSize: 20 # comment list page size avatar: mp # gravatar style https://valine.js.org/#/avatar lang: zh-cn # i18n: zh-cn/en/tw placeholder: 你要留下你的足迹嘛?喵~ # valine comment input placeholder(like: Please leave your footprints ) guest_info: nick,mail,link #valine comment header inf
since: 2018
footer_custom_text:
footer_copyright: enable: true
ICP: enable: false url: text: icon: /img/icp.png
google_site_verification: Qr-YUMsmamacGjibQoqgCXMSotasUgUprPmP525d0Ls
bing_site_verification:
baidu_site_verification:
qihu_site_verification:
Flink: headline: 友情链接 info_headline: Who am I? name: Blog 名字: GamerNoTitle address: Blog 地址: https://bili33.top avatar: Blog 头像: https://cdn.bili33.workers.dev/GamerNoTitle/Picture-repo/master/AboutMe/Logo.png info: Blog 标语: 永远相信 美好的事情 即将发生 PS: PS:本文所有的数字表示方式来自Mili - world.execute(me); comment: 想和我交换友链吗?请在网页下方留言或发送邮件到admin@bili33.top哦~
reward: enable: false QR_code:
related_post: enable: true limit: 6 # 顯示推薦文章數目
index_site_info_top: #主頁標題距離頂部距離 例如 300px/300em/300rem/10% index_top_img_height: #主頁top_img高度 例如 300px/300em/300rem 不能使用百分比
category_ui: # 留空或index tag_ui: # 留空或index
background:
footer_bg: false
canvas_ribbon: enable: true size: 150 alpha: 0.6 zIndex: -1 click_to_change: true mobile: false # false 手機端不顯示 true 手機端顯示
canvas_ribbon_piao: enable: true mobile: false # false 手機端不顯示 true 手機端顯示
canvas_nest: enable: false color: '0,0,255' #color of lines, default: '0,0,0'; RGB values: (R,G,B).(note: use ',' to separate.) opacity: 0.7 # the opacity of line (0~1), default: 0.5. zIndex: -1 # z-index property of the background, default: -1. count: 99 # the number of lines, default: 99. mobile: false # false 手機端不顯示 true 手機端顯示
activate_power_mode: enable: true
fireworks: enable: true
click_heart: enable: false
ClickShowText: enable: false text:
avatar_effect: false
display_mode: light
post_beautify: enable: false title-prefix-icon: '\f0c1' title-prefix-icon-color: "#F47466"
font: enable: false font-family: Lato, Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, MicrMicrosoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif code-font: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace, Helvetica Neue For Number
blog_title_font: font_link: https://fonts.googleapis.com/css?family=Titillium+Web #字體鏈接 font-family: Titillium Web, PingFang SC, Hiragino Sans GB, "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
hr: enable: false icon: '\f21c' #fontawesome上圖標的Unicode icon-top: -20px
subtitle: enable: true
source: false
sub:
aside: position: right # left or right card_author: true card_announcement: true card_recent_post: true card_categories: true card_tags: false card_archives: true card_webinfo: true
announcement: content: 拖更预备(我:咕~咕咕~咕咕咕咕~),试问:有人能听得懂鸽子语吗?
busuanzi: site_uv: true site_pv: true page_pv: true
runtimeshow: enable: true start_date: 7/1/2019 00:00:00 #m/d/y h:m:s
translate: enable: true
default: 繁
defaultEncoding: 2
translateDelay: 0
cookieDomain: "https://xxx/"
msgToTraditionalChinese: "繁"
msgToSimplifiedChinese: "简"
readmode: enable: true
darkmode: enable: true
autoChangeMode: false
medium_zoom: enable: false
snackbar: enable: false position: bottom-left bg_light: '#49b1f5' #light mode時彈窗背景 bg_dark: '#2d3035' #dark mode時彈窗背景
baidu_push: enable: false
instantpage: enable: true
note:
style: flat icons: true border_radius: 3
light_bg_offset: 0
lazyload: enable: true
canonical: true
disable_baidu_transformation: true
twitter_meta: true
Open_Graph_meta: true
CDN_USE: css:
https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
js:
CDN:
blueimp-md5: https://cdn.jsdelivr.net/npm/blueimp-md5@2.10.0/js/md5.min.js gitalk: https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js gitalk_css: https://cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.css valine: https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js
addtoany: https://static.addtoany.com/menu/page.js sharejs: https://cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/js/social-share.min.js sharejs_css: https://cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/css/share.min.css
algolia_search: https://cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.js algolia_search_css: https://cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.css algolia_js: /js/search/algolia.js local_search: /js/search/local-search.js
mathjax: https://cdn.jsdelivr.net/npm/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML katex: https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css katex_copytex: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js katex_copytex_css: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.css
busuanzi: //busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js
canvas_ribbon: /js/third-party/canvas-ribbon.js # https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@latest/js/canvas-ribbon.js canvas_ribbon_piao: /js/third-party/piao.js # https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@latest/js/piao.js canvas_nest: /js/third-party/canvas-nest.js # https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@latest/js/canvas-nest.js
lazyload: https://cdn.jsdelivr.net/npm/lazysizes@latest/lazysizes.min.js instantpage: https://cdn.jsdelivr.net/npm/instant.page@latest/instantpage.min.js
typed: https://cdn.jsdelivr.net/npm/typed.js js_cookies: https://cdn.jsdelivr.net/npm/js-cookie/dist/js.cookie.min.js
fancybox_css: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js #/js/third-party/jquery.fancybox.min.js medium_zoom: https://cdn.jsdelivr.net/npm/medium-zoom/dist/medium-zoom.min.js
snackbar_css: https://cdn.jsdelivr.net/npm/node-snackbar@0.1.15/dist/snackbar.min.css snackbar: https://cdn.jsdelivr.net/npm/node-snackbar@0.1.15/dist/snackbar.min.js
anime: https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js #/js/third-party/anime.min.js activate_power_mode: /js/third-party/activate-power-mode.js # https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@latest/js/activate-power-mode.js fireworks: /js/third-party/fireworks.js # https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@latest/js/fireworks.js click_heart: /js/third-party/click_heart.js # https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@latest/js/click_heart.js ClickShowText: /js/third-party/ClickShowText.js # https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@latest/js/ClickShowText.js
translate: /js/tw_cn.js runtimeshow: js/runtimeshow.js
里面友链那里有个PS是我在友链界面加多了一个项 hr .comment_int p.comment-word= theme.Flink.comment //- 下面是PS内容 p(style="font-size:9px;font-weight:bold")= theme.Flink.PS
搞定了 Thanks♪(・ω・)ノ
主题从不知道哪个版本升级到了最新版后,出现了界面的渲染问题(如图)
浏览器Console
以下是Hexo的Package.json { "name": "hexo-site", "version": "0.0.0", "private": true, "hexo": { "version": "3.9.0" }, "dependencies": { "gitalk": "^1.5.0", "hexo": "^3.9.0", "hexo-deployer-git": "^1.0.0", "hexo-generator-archive": "^0.1.5", "hexo-generator-baidu-sitemap": "^0.1.6", "hexo-generator-category": "^0.1.3", "hexo-generator-feed": "^2.0.0", "hexo-generator-index": "^0.2.1", "hexo-generator-index-pin-top": "^0.2.2", "hexo-generator-sitemap": "^1.2.0", "hexo-generator-tag": "^0.2.0", "hexo-helper-live2d": "^3.1.1", "hexo-renderer-ejs": "^0.3.1", "hexo-renderer-jade": "^0.4.1", "hexo-renderer-marked": "^1.0.1", "hexo-renderer-stylus": "^0.3.3", "hexo-sage-posts": "^0.0.1", "hexo-server": "^0.3.3", "hexo-wordcount": "^6.0.1", "live2d-widget-model-tororo": "^1.0.5" } }