jerryc127 / hexo-theme-butterfly Goto Github PK
View Code? Open in Web Editor NEW🦋 A Hexo Theme: Butterfly
Home Page: https://butterfly.js.org
License: Apache License 2.0
🦋 A Hexo Theme: Butterfly
Home Page: https://butterfly.js.org
License: Apache License 2.0
当runtimeshow配置项 开启且日期格式为 1x(2x)/x/201x 时天数 会显示异常
如:
runtimeshow:
enable: true
start_date: 27/7/2017 00:00:00
改为
runtimeshow:
enable: true
start_date: 7/7/2017 00:00:00
正常显示
修改后:
if theme.gitalk && theme.gitalk.enable
- let lang = config.language === 'zh-Hans' ? 'zh-CN' : config.language
#gitalk-container
script.
var gitalk = new Gitalk({
clientID: '!{theme.gitalk.client_id}',
clientSecret: '!{theme.gitalk.client_secret}',
repo: '!{theme.gitalk.repo}',
owner: '!{theme.gitalk.owner}',
admin: '!{theme.gitalk.admin}',
id: md5(decodeURI(location.pathname)),
language: '!{lang}'
})
gitalk.render('gitalk-container')
I add fireworks:
true to melody.yml
,but there is no fireworks effect .
extends includes/layout.pug block content #recent-posts.recent-posts include includes/recent-posts.pug include includes/pagination.pug #aside_content.aside_content include includes/aside.pug
您好,我想知道怎麽能夠關閉tag、achieve、about頁面的評論功能,能麻煩告知一下嗎?麻煩了
你好,我最近发现了你的这个主题,特别喜欢,已经在我自己的blog(www.codezen.xyz)使用上了。
有一个小小的建议,就是Markdown的内联代码块,即如Hello World
,在渲染时,现在的字体颜色很淡,不够突出。
能否将字体颜色修改为其他颜色。比如和博客的主题颜色一致。
推荐使用 material 风格的图片作为 random cove r图片,比较美观好看
使用后效果
图片地址
https://github.com/gaohanghang/images/tree/master/random
我是从这里下载的图片
https://github.com/viosey/hexo-theme-material/tree/master/source/img/random
设置方式
请问主题的短链接是要自己写嘛?需要安装abbrlink插件嘛?还是只需要在主题的配置文件里开启功能即可
插件:hexo-blog-encypt
如图
页面地址:JVxie
我又来了:想问一下是否可以让封面图在几张里面随机?
节选自butterfly.yml
gitalk:
enable: true
client_id: ****************
client_secret: **********************************
repo: xxx.github.io
owner: myaccount
admin: myaccount
#### Using this js for redirect to gitalk container after login
#### See https://github.com/gitalk/gitalk/issues/125
js: https://cdn.jsdelivr.net/gh/upupming/gitalk@36368e5dffd049e956cdbbd751ff96c28d8255cf/dist/gitalk.min.js
repo存在,id和secret输入正确,回调地址为网站地址,强制https且页面上显示gitalk,但初始化评论跳转回主页且不生效,浏览器报错
(index):42 GET https://api.github.com/user 401 (Unauthorized)
在我使用主题之后使用此插件的时候,生成的书单和电影页面上的顶部大图只能和首页的大图保持一致而无法自定义,请问是主题的兼容问题还是什么
求大佬解答!!!
开发者您好~
看到您那个会转圈圈的头像觉得非常cool,不过我查看了说明文件并没有特性,所以想请问我也可以让自己的头像转圈圈嘛(可怜脸(o゚v゚)ノ)
copy:
enable: false # true 開啓 / false 禁止
copyright: false
hexo-renderer-jade已经没有维护了(或者叫改名了?
应该安装新版的hexo-render-pug吧,不然会报漏洞
实测装hexo-render-pug编译不会报错,readme和文档部分是否可以稍微改一下hhh
Would be cool to have english translation for the README documentation.
现在添加文章虽然有默认的cover可以在_config.yml中配置,但是很单一,是否可以配置多个图片,随机读取展示呢?
你好,我clone你的主题后发布没出错,但是,访问网页后网页上只出现了这行代码
extends includes/layout.pug block content #recent-posts.recent-posts include includes/recent-posts.pug include includes/pagination.pug #aside_content.aside_content include includes/aside.pug
TypeError: C:\Users\chc_golang\Desktop\blog\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 'path' of undefined
at eval (eval at wrap (C:\Users\chc_golang\Desktop\blog\node_modules\pug-runtime\wrap.js:6:10), :385:25)
at template (eval at wrap (C:\Users\chc_golang\Desktop\blog\node_modules\pug-runtime\wrap.js:6:10), :2517:72)
at Theme._View.View._compiled.locals [as _compiled] (C:\Users\chc_golang\Desktop\blog\node_modules\hexo\lib\theme\view.js:125:48)
at Theme._View.View.View.render (C:\Users\chc_golang\Desktop\blog\node_modules\hexo\lib\theme\view.js:30:15)
at route.set (C:\Users\chc_golang\Desktop\blog\node_modules\hexo\lib\hexo\index.js:394:29)
at tryCatcher (C:\Users\chc_golang\Desktop\blog\node_modules\bluebird\js\release\util.js:16:23)
at C:\Users\chc_golang\Desktop\blog\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (C:\Users\chc_golang\Desktop\blog\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:457:10)
at resume (_stream_readable.js:933:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
文章下方显示的文章链接是错误的
如何修正设置?
extends includes/layout.pug block content #recent-posts.recent-posts include includes/recent-posts.pug include includes/pagination.pug #aside_content.aside_content include includes/aside.pug
在post下的md文件中编辑文章,发现字数超过一定数量之后,文章会显示不全,包括后边的related_post、sidebar和footer等内容,也会一并消失!
我尝试修改回默认的的hexo主题:landscape,一切显示正常。
以上是在本地上运行的,还没有上传过。
我不太清楚是不是因为有文字限制?
有趣的是,我尝试把文章所有内容复制到默认的hello world当中发现一切显示正常,多次尝试后,找到以下规律:
`
`
文章中若有上述内容,就会显示正常...
完全没有头绪是哪里出了问题
hexo g
的时候会报错:Cannot read property 'appId' of undefined
问题描述、复现步骤
git clone -b dev https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
theme: Butterfly
npm install hexo-renderer-jade hexo-renderer-stylus --save
hexo g
出现错误。系统信息
"dependencies": {
"hexo": "^3.9.0",
"hexo-deployer-git": "^2.0.0",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.1",
"hexo-generator-tag": "^0.2.0",
"hexo-render-pug": "^2.1.4",
"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-server": "^0.3.3"
}
🌹
Request URL: https://api.github.com/user
Request Method: GET
Status Code: 200 OK
Request URL: https://api.github.com/repos/jjdog/jjdog.github.io/issues?client_id=7edb41345bd2*****&client_secret=f7996866c831202ebd9eefd538e50c3cb206671d&labels=Gitalk,e89c13bdaa0ea3e317fa6a90c*****&t=1569510263642
Request Method: GET
Status Code: 200 OK
个人信息不知道在哪里,安装文档只有头像,简介找不到,只有友情链接的简介
\layout\includes\layout.pug
下的相关代码被注释掉了.
!=favicon_tag(config.favicon || theme.favicon || '/favicon.ico')
您好,我這有一些問題:
感謝
搜索功能开启之后并没有显示搜索框
因为fontawesome里没有豆瓣知乎b站等国内的图标
After I cloned the repository and update the _config.yml
,I start to generate it by using hexo g
.But the error occured this time.What should I do to fix it? I've installed Typescript
、hexo-renderer-jade
、hexo-renderer-stylus
ERROR /xxx/blog/themes/Butterfly/layout/includes/layout.pug:21
19|
20| - var pageDescription = page.description || page.title || config.description || ''
> 21| - var pageKeywords = (config.keywords || []).join(',')
22| - if (page.tags && page.tags.data) pageKeywords = page.tags.data.map(function(tag) {return tag.name;}).join(',')
23| - var pageAuthor = config.email ? config.author + ',' + config.email : config.author
24| - var pageCopyright = config.copyright || config.author
(config.keywords || []).join is not a function
TypeError: /xxx/blog/themes/Butterfly/layout/includes/layout.pug:21
19|
20| - var pageDescription = page.description || page.title || config.description || ''
> 21| - var pageKeywords = (config.keywords || []).join(',')
22| - if (page.tags && page.tags.data) pageKeywords = page.tags.data.map(function(tag) {return tag.name;}).join(',')
23| - var pageAuthor = config.email ? config.author + ',' + config.email : config.author
24| - var pageCopyright = config.copyright || config.author
(config.keywords || []).join is not a function
at eval (eval at wrap (/xxx/blog/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:32:44)
at template (eval at wrap (/xxx/blog/node_modules/pug-runtime/wrap.js:6:10), <anonymous>:2738:72)
at Theme._View.View._compiled.locals [as _compiled] (/xxx/blog/node_modules/hexo/lib/theme/view.js:125:48)
at Theme._View.View.View.render (/xxx/blog/node_modules/hexo/lib/theme/view.js:30:15)
at route.set (/xxx/blog/node_modules/hexo/lib/hexo/index.js:394:29)
at tryCatcher (/xxx/blog/node_modules/bluebird/js/release/util.js:16:23)
at /xxx/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/xxx/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:470:10)
at resume_ (_stream_readable.js:949:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
拉取最新的版本hexo g后报错 安装的组件和上一个版本一样 是还要装什么吗?
INFO Deleted database.
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
TypeError: Cannot read property 'enable' of undefined
at Hexo.<anonymous> (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/themes/Butterfly/scripts/post-lazyload.js:5:23)
at Hexo.tryCatcher (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/method.js:15:34)
at /Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/hexo/lib/extend/filter.js:60:50
at tryCatcher (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/reduce.js:155:18)
at Object.gotAccum (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromiseCtx (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/promise.js:611:10)
at _drainQueueStep (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/async.js:142:12)
at _drainQueue (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/qinkangdeid/Nextcloud/work/codes/personal/github/personal/qinkangdeid.github.io/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate (internal/timers.js:439:21)
1.文章的封面图,在文章里使用什么属性设置?
2.文章中的从下向上滚动时的导航栏是否有意设置成无导航按钮?
3.你博客中的固定短链接是如何设置的?我现在设置的是使用:id
但是比较长,每次生成的都不一样。
4.右侧的区域块是否可以在类似标签页
中自定义显示某一部分或者是不显示?
5.友情链接在melody.yml
中的配置信息的作用是什么?另外在页面中是否需要根据什么特定格式书写?
6.目前我在部分文章中根据原主题的文档,设置了top_img
,只能显示在文章顶部,封面还是默认的图片,另外在文章下部的相关文章
的所有图片都是碎的,既没有自定义设置的图片,也没有主题默认显示的图片。打开控制台看了下img
的src
属性为src="undefined"
。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.