Comments (13)
请提供一下package.json
from hexo-theme-butterfly.
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.8.0"
},
"dependencies": {
"hexo": "^3.7.0",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.1",
"hexo-generator-search": "^2.3.0",
"hexo-generator-tag": "^0.2.0",
"hexo-permalink-pinyin": "^1.0.0",
"hexo-prism-plugin": "^2.3.0",
"hexo-renderer-ejs": "^0.3.1",
"hexo-renderer-jade": "^0.4.1",
"hexo-renderer-marked": "^0.3.2",
"hexo-renderer-stylus": "^0.3.3",
"hexo-server": "^0.3.3",
"hexo-symbols-count-time": "^0.6.0",
"hexo-wordcount": "^6.0.1"
}
}
from hexo-theme-butterfly.
在使用原版主题的时候是正常的,另外,使用时是将主题的_config.yml
配置数据复制到melody.yml
中进行的配置。
from hexo-theme-butterfly.
我这里测试正常
你提供下melody.yml
还有 报错Cannot read property 'appId' of undefined
下面的一些错误显示也发来
from hexo-theme-butterfly.
是否方便留个QQ什么的即时通讯的联系方式?
from hexo-theme-butterfly.
melody.yml
中的数据直接是使用的主题里面的_config.yml
的数据,没有进行任何更改,尝试开启valine
后,填入对应的appId
也是一样。
目前是尝试了三种形式:
1.melody.yml
中数据使用原版主题的配置报错
ERROR E:\Project\Private\gorkys\themes\Butterfly\layout\includes\aside.pug:5
3| .post_data
4| .data-item.text-center
> 5| img.lozad(data-src=theme.avatar || url_for('/img/avatar.png') onerror=`onerror=null;src='${theme.lodding_bg.flink}'`)
6| p.author-info__name.text-center= config.author
7| p.author-info__description.text-center= config.description
8|
Cannot read property 'flink' of undefined
TypeError: E:\Project\Private\gorkys\themes\Butterfly\layout\includes\aside.pug:5
3| .post_data
4| .data-item.text-center
> 5| img.lozad(data-src=theme.avatar || url_for('/img/avatar.png') onerror=`onerror=null;src='${theme.lodding_bg.flink}'`)
6| p.author-info__name.text-center= config.author
7| p.author-info__description.text-center= config.description
8|
Cannot read property 'flink' of undefined
at eval (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:3774:192)
at template (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:10216:72)
at Theme._View.View._compiled (E:\Project\Private\gorkys\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (E:\Project\Private\gorkys\node_modules\hexo\lib\theme\view.js:30:15)
at E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (E:\Project\Private\gorkys\node_modules\bluebird\js\release\util.js:16:23)
at E:\Project\Private\gorkys\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
2.melody.yml
中数据使用该修改版主题的_config.yml
配置报错
ERROR E:\Project\Private\gorkys\themes\Butterfly\layout\includes\config.pug:1
> 1| -
2| var algolia = 'undefined';
3| var env = process.env;
4| if (theme.algolia_search.enable) {
Cannot read property 'appId' of undefined
TypeError: E:\Project\Private\gorkys\themes\Butterfly\layout\includes\config.pug :1
> 1| -
2| var algolia = 'undefined';
3| var env = process.env;
4| if (theme.algolia_search.enable) {
Cannot read property 'appId' of undefined
at eval (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtime\wr ap.js:6:10), <anonymous>:369:49)
at template (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtim e\wrap.js:6:10), <anonymous>:10216:72)
at Theme._View.View._compiled (E:\Project\Private\gorkys\node_modules\hexo\l ib\theme\view.js:125:48)
at Theme._View.View.View.render (E:\Project\Private\gorkys\node_modules\hexo \lib\theme\view.js:30:15)
at E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\index.js:394:29
at tryCatcher (E:\Project\Private\gorkys\node_modules\bluebird\js\release\ut il.js:16:23)
at E:\Project\Private\gorkys\node_modules\bluebird\js\release\method.js:15:3 4
at RouteStream._read (E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\r outer.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:457:10)
at resume_ (_stream_readable.js:936:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
3.melody.yml
中数据使用该修改版主题的_config.yml
配置并开启valine
,报错同2
from hexo-theme-butterfly.
from hexo-theme-butterfly.
不好意思 有一個低級錯誤
algolia_search:
enable: flase
hits:
per_page: 6
我打錯了 false 而不是 flase
你改正再hexo clean
from hexo-theme-butterfly.
不要用原版的_config
因爲我有修改過内容
原版的一些_config内容不適應這版主題
from hexo-theme-butterfly.
@jerryc127 可以了,非常感谢。另外如何关闭某些页面的评论功能?目前在标签页显示评论功能。
from hexo-theme-butterfly.
@jerryc127 可以了,非常感谢。另外如何关闭某些页面的评论功能?目前在标签页显示评论功能。
在標籤頁的md裏加上“comments: false"
title: 標籤
date: 2018-06-07 22:15:37
type: "tags"
top_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/Photo/tag.jpg
comments: false
from hexo-theme-butterfly.
再次谢谢你,修改版真的特别棒。你博客中使用到的封面都是自己做的么?感觉很搭~
from hexo-theme-butterfly.
再次谢谢你,修改版真的特别棒。你博客中使用到的封面都是自己做的么?感觉很搭~
在一些無版權圖片網站找到
from hexo-theme-butterfly.
Related Issues (20)
- [Bug]: build失败 HOT 2
- [Bug]: toc_expand: false不起作用 HOT 4
- [Bug]: 鼠標點擊效果: 文字 设置为true后不生效 HOT 3
- [Bug]: 配置时遇到的bug HOT 2
- [Bug]: HOT 2
- [Bug]: 侧边栏邮箱联系,本地正常,部署之后会自动加上域名导致404 HOT 2
- [Bug]: 有关于左上角图标跳转的bug的问题 HOT 4
- [Feature]: 仅针对特定文章的侧边栏
- [Feature]: 添加多语言支持或配置教程 HOT 4
- [Bug]: [后续][另辟蹊径的解决办法]关于左上角图标跳转bug的问题续篇 HOT 1
- [Feature]: Apply `blur` effect to images in `{% gallery %}` HOT 1
- [Bug]: tabs 渲染不太对 HOT 4
- [Bug]: 最新评论正在加载中 HOT 6
- [Bug]: Waline 评论无法展示 HOT 1
- [Bug]: Artalk无法正常获取评论 HOT 2
- [Bug]:未适配waline 3.0.1,无法显示评论系统 HOT 1
- [Bug]: 文章页面无法加载twikoo评论的数量 HOT 2
- [Bug]: butterfly对于 无序列表中的代码块渲染出错 HOT 3
- [Bug]: 卜算子失效 HOT 1
- [Feature]: 音乐播放器设置隐藏 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-theme-butterfly.