haojen / hexo-theme-anisina Goto Github PK
View Code? Open in Web Editor NEW:art: A simple responsive, support qiniu image cdn theme for hexo https://haojen.github.io/
License: Apache License 2.0
:art: A simple responsive, support qiniu image cdn theme for hexo https://haojen.github.io/
License: Apache License 2.0
github的能正常打开,知乎和微博都是显示查无此人,但是在知乎和微博上都能搜到自己。
在说明文档中没有找到其它SNS设置的说明,因此提问。
`Unhandled rejection ReferenceError: H:\hexo\themes\Anisina\layout\page.ejs:145
143|
145| <%- page.content || body %>
146|
body is not defined
`
把所有已有文章给删除了,再new一篇,hexo g 之后报错,重新构建hexo项目,再pull下这个主题,也不行。
I just create tags, but it looks like this:
blog
Untitled
Untitled
Untitled
Untitled
Untitled
Untitled
Untitled
Why this happend?
在首页右侧信息下面加上友链,不知道可以增加这么功能?
不知该主题能够支持latex公式显示?
首先,很感谢作者的共享精神,模板很漂亮!
但是,我在部署的时候遇见了一些问题,看了layout下面的.ejs文件内容和 文档之后,感觉文档中对于asset(资源)的路径描述不清楚. 容易让使用者在相对路径和绝对路径的错误中绕不出来.
假设我们在hexo项目目录 /source/img/ 中放入 avatar.jpg文件
按照文档中的用例,我们设置post-default-image: img/avatar.jpg
这样在index.html文件中会被拼接为 http://yourwebsite/img/avatar.jpg
但是在page.html文件中会被浏览器自动拼接为 http://yourwebsite/page/1/img/avatar.jpg
即 它是以相对路径的形式嵌入到网页中的.
假如我们更改为post-default-image: /img/avatar.jpg
则当hexo在渲染模板的时候嵌入的是绝对路径,则会访问source/img/avatar.jpg
这种情况下无轮是首页还是文章页都是绝对路径,所以都能正确加载图片.
您好 ,很喜欢您的主题,我遇到的一个问题是首页一打开以后,正常来说第一篇文章是有个背景图的,可是那个背景图一直是灰色的显示不出来,我填写了默认的post-default-img ,在打开文章以后,header显示背景图片又是正常的。我不知道还能改哪里,其他的地方也试过了,您能帮我解答一下吗 谢谢你 我的地址是http://xxxxxdog.github.io
安装说明中的SNS settings去哪个文件找呢
在之前我使用 cyanstyle 主题,现在切换到这个主题。在我执行 hexo server 的时候,提示我无法找到 index.html
每一篇文章上的目录,点上去没反应
在tags页面的中会显示_draft
中文章的标签
您好 ,更新了新版本后,首页的那张图片显示不准确 因为现在page里的每张图片都是在独立的文件夹下
比如 http://localhost:4000/2016/05/30/Dom%20HTML/web-img.jpg
但是首页这张图 虽然路径是取自post的header-img 但是路径对应不上 他的路径是根目录...
比如http://localhost:4000/web-img.jpg
然后这样的话首页的图就显示不出来了...
PS: 自己找到办法..我在index.ejs 里 在<%- post["header-img"]
加上了 <%- config.root %><%- post.path %>
最后如下
<div class="post-preview <%- post.layout === 'poetry'? 'post-preview-poetry':''%>" style="background-image: url('<%- config["cdn-url"]%><%- config.root %><%- post.path %><%- post["header-img"] || config["post-default-img"] %><%- config["cdn-url"]?config["clip-home-post-bg"]:"" %>')">
这样首页图就可以显示啦 :)
按默认的config设置,运行hexo g出现很长的报错,没有空的md文件
root@JK-Builder:/opt/hexo# hexo g
INFO Start processing
INFO Files loaded in 559 ms
Unhandled rejection ReferenceError: /opt/hexo/themes/Anisina/layout/page.ejs:145
143|
145| <%- body %>
146|
body is not defined
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :29:4567)
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :29:12223)
at /opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/opt/hexo/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/opt/hexo/node_modules/hexo/lib/theme/view.js:29:15)
at /opt/hexo/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at /opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/opt/hexo/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:341:10)
at RouteStream.Readable.on (_stream_readable.js:720:14)
at RouteStream.Readable.pipe (_stream_readable.js:575:10)
at /opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:166:23
at Promise._execute (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:299:9)
at Promise._resolveFromExecutor (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:481:18)
at new Promise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)
at pipeStream (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:161:10)
at writeFile (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:50:12)
at fs.exists.then.finally.generatingFiles.(anonymous function) (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:35:35)
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Async._drainQueue (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)
at process._tickCallback (node.js:458:13)
Unhandled rejection TypeError: /opt/hexo/themes/Anisina/layout/archive.ejs:13
11|
13|
<%= config.archive.title || config.title %>
14| <%= config.archive.description || config.subtitle || "" %>
15|
Cannot read property 'title' of undefined
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :29:411)
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :32:2611)
at /opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/opt/hexo/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/opt/hexo/node_modules/hexo/lib/theme/view.js:29:15)
at /opt/hexo/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at /opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/opt/hexo/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:341:10)
at RouteStream.Readable.on (_stream_readable.js:720:14)
at RouteStream.Readable.pipe (_stream_readable.js:575:10)
at /opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:166:23
at Promise._execute (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:299:9)
at Promise._resolveFromExecutor (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:481:18)
at new Promise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)
at pipeStream (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:161:10)
at writeFile (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:50:12)
at fs.exists.then.finally.generatingFiles.(anonymous function) (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:35:35)
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Async._drainQueue (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)
at process._tickCallback (node.js:458:13)
Unhandled rejection TypeError: /opt/hexo/themes/Anisina/layout/archive.ejs:13
11|
13|
<%= config.archive.title || config.title %>
14| <%= config.archive.description || config.subtitle || "" %>
15|
Cannot read property 'title' of undefined
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :29:411)
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :32:2611)
at /opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/opt/hexo/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/opt/hexo/node_modules/hexo/lib/theme/view.js:29:15)
at /opt/hexo/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at /opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/opt/hexo/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:341:10)
at RouteStream.Readable.on (_stream_readable.js:720:14)
at RouteStream.Readable.pipe (_stream_readable.js:575:10)
at /opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:166:23
at Promise._execute (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:299:9)
at Promise._resolveFromExecutor (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:481:18)
at new Promise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)
at pipeStream (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:161:10)
at writeFile (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:50:12)
at fs.exists.then.finally.generatingFiles.(anonymous function) (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:35:35)
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Async._drainQueue (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)
at process._tickCallback (node.js:458:13)
Unhandled rejection TypeError: /opt/hexo/themes/Anisina/layout/archive.ejs:13
11|
13|
<%= config.archive.title || config.title %>
14| <%= config.archive.description || config.subtitle || "" %>
15|
Cannot read property 'title' of undefined
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :29:411)
at eval (eval at (/opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:242:14), :32:2611)
at /opt/hexo/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/opt/hexo/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/opt/hexo/node_modules/hexo/lib/theme/view.js:29:15)
at /opt/hexo/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at /opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/opt/hexo/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:341:10)
at RouteStream.Readable.on (_stream_readable.js:720:14)
at RouteStream.Readable.pipe (_stream_readable.js:575:10)
at /opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:166:23
at Promise._execute (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:299:9)
at Promise._resolveFromExecutor (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:481:18)
at new Promise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)
at pipeStream (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:161:10)
at writeFile (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:50:12)
at fs.exists.then.finally.generatingFiles.(anonymous function) (/opt/hexo/node_modules/hexo/lib/plugins/console/generate.js:35:35)
at tryCatcher (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/promise.js:691:18)
at Async._drainQueue (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/opt/hexo/node_modules/hexo/node_modules/bluebird/js/release/async.js:17:14)
at process._tickCallback (node.js:458:13)
INFO Generated: 2017/04/09/hello-world/index.html
INFO Generated: index.html
INFO Generated: fonts/glyphicons-halflings-regular.ttf
INFO Generated: fonts/glyphicons-halflings-regular.eot
INFO Generated: css/blog-style.css
INFO Generated: css/syntax.css
INFO Generated: res/avatar.jpg
INFO Generated: fonts/glyphicons-halflings-regular.woff
INFO Generated: fonts/glyphicons-halflings-regular.woff2
INFO Generated: js/blog.js
INFO Generated: js/bootstrap.min.js
INFO Generated: js/jquery.tagcloud.js
INFO Generated: js/totop.js
INFO Generated: css/bootstrap.min.css
INFO Generated: fonts/glyphicons-halflings-regular.svg
INFO Generated: js/jquery.min.js
INFO Generated: js/jquery.js
请问要如何设置头像呢,我用avatar设置了Https://格式的却没有办法显示,请问有什么解决方案么?
why there's no index.html in the tags folder? And i can't open the tags pages....
现在我也写了一个主题,但是只有host , host/archive/,想自己添加一个/users的页面,但是试了几次,最后浏览器看到的都是Cannot get /users/。
应该是布局文件的设置有问题。我就想问一下,怎么修改layout里面的.ejs文件,可以让我访问我新增加的/users页面
config["post-default-img"]获取为undefined,config.title和post[head-img]能够正常获取
可以给主题增加一个archive栏目吗,我感觉这个还是很有用的,谢谢!
github.io 强制使用https,http 的cdn失效了。
建议把footer.ejs 和 head.ejs 的cdn 改成https
ps 你的主题真漂亮~
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: Cannot set property 'lastIndex' of undefined
at highlight (/Users/deng/Documents/hexoFile/ghdengdlog/node_modules/hexo/node_modules/hexo-util/node_modules/highlight.js/lib/highlight.js:514:35)
使用hexo g,报错代码如下,在网上也没有找到解决办法,十分感谢解答。更换其他主题hexo g没有问题
$ hexo g
INFO Start processing
INFO Files loaded in 371 ms
Unhandled rejection ReferenceError: F:\Hexo\themes\Anisina\layout\page.ejs:127
125| <div class="row">
126| <div class="col-lg-8 col-lg-offset-1 col-md-8 col-md-offset-1 col-sm-12 col-xs-12 post-container">
>> 127| <%- page.content || body %>
128| </div>
129| <!-- Sidebar Container -->
130| <div class="
body is not defined
at eval (eval at <anonymous> (F:\Hexo\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:4918)
at eval (eval at <anonymous> (F:\Hexo\node_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:12999)
at F:\Hexo\node_modules\ejs\lib\ejs.js:255:15
at _compiled (F:\Hexo\node_modules\hexo\lib\theme\view.js:127:30)
at View.render (F:\Hexo\node_modules\hexo\lib\theme\view.js:29:15)
at F:\Hexo\node_modules\hexo\lib\hexo\index.js:387:25
at tryCatcher (F:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at F:\Hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (F:\Hexo\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:349:10)
at resume_ (_stream_readable.js:738:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
INFO Generated: archives/2016/08/index.html
INFO Generated: archives/index.html
INFO Generated: 2016/08/30/How-to-use-kindle/index.html
INFO Generated: 2016/08/31/hexo-install/index.html
INFO Generated: tags/Kindle/index.html
INFO Generated: About/index.html
INFO Generated: tags/Github/index.html
INFO Generated: tags/Git/index.html
INFO Generated: tags/Github-Pages/index.html
INFO Generated: tags/博客/index.html
INFO Generated: archives/2016/index.html
INFO Generated: tags/书单/index.html
INFO Generated: index.html
INFO Generated: fonts/glyphicons-halflings-regular.woff
INFO Generated: fonts/glyphicons-halflings-regular.eot
INFO Generated: fonts/glyphicons-halflings-regular.woff2
INFO Generated: fonts/glyphicons-halflings-regular.ttf
INFO Generated: fonts/glyphicons-halflings-regular.svg
INFO Generated: css/syntax.css
INFO Generated: css/style.css
INFO Generated: js/blog.js
INFO Generated: css/blog-style.css
INFO Generated: css/bootstrap.min.css
INFO Generated: js/jquery.tagcloud.js
INFO Generated: js/totop.js
INFO Generated: css/bootstrap.css
INFO Generated: js/jquery.min.js
INFO Generated: js/bootstrap.min.js
INFO Generated: js/bootstrap.js
INFO Generated: js/jquery.js
I used command "hexo g" and then there was an error:
Unhandled rejection ReferenceError: /Users/zeyang/Documents/workspace/bb/themes/Anisina/layout/page.ejs:127
125| <div class="row">
126| <div class="col-lg-8 col-lg-offset-1 col-md-8 col-md-offset-1 col-sm-12 col-xs-12 post-container">
>> 127| <%- page.content || body %>
128| </div>
129| <!-- Sidebar Container -->
130| <div class="
body is not defined
at eval (eval at <anonymous> (/Users/zeyang/Documents/workspace/bb/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:5035)
at eval (eval at <anonymous> (/Users/zeyang/Documents/workspace/bb/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:12609)
at /Users/zeyang/Documents/workspace/bb/node_modules/ejs/lib/ejs.js:255:15
at Object.exports.render (/Users/zeyang/Documents/workspace/bb/node_modules/ejs/lib/ejs.js:293:13)
at Hexo.<anonymous> (/Users/zeyang/Documents/workspace/bb/node_modules/hexo-renderer-mathjax/index.js:14:24)
at Hexo.tryCatcher (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/util.js:26:23)
at Hexo.ret (eval at <anonymous> (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/promisify.js:163:12), <anonymous>:13:39)
at /Users/zeyang/Documents/workspace/bb/node_modules/hexo/lib/hexo/render.js:51:21
at tryCatcher (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromiseAtPostResolution (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/promise.js:245:10)
at Async._drainQueue (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/zeyang/Documents/workspace/bb/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
博主大大,
我试了半天就是不知道怎么设置让header-img正常工作。
---
title: Install Arduino IDE 1.8.2 in Ubuntu 16.04
date: 2017-03-27 22:54:43
header-img: arduino_uno.jpg
---
在_config.yml里
post_asset_folder: true
# img CDN path
cdn-url: # 你的CDN地址
主页的404错误(最新post的preview图片)
GET http://localhost:4000/nullarduino_uno.jpg 404 (Not Found)
post页面的404错误
GET http://localhost:4000/2017/03/27/Install-Arduino-IDE-1-8-2-in-Ubuntu-16-04/nullarduino_uno.jpg 404 (Not Found)
然后,如果我加上cdn: header-off的话,在post页面header img能显示,但是在主页的还是没法显示因为path找的是根目录下的arduino_uno.jpg
我想把图片存本地,有什么解决办法吗?
多谢
Disqus国内被不可描述, 而多说宣布将在2017年7月1日停止对多说评论插件的一切支持. 希望作者能加入对其他诸如友言等插件的支持, 谢谢!
博主您好,我是个强迫症患者,希望能够文章在屏幕居中,应该改哪一段css呢,我的博客地址zhanghuaizheng.com
生成的tag路径是 /tags/#学习笔记
换成/tags/学习笔记 console
TypeError: The header content contains invalid characters
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:358:11)
at D:\blog\node_modules\hexo-server\lib\middlewares\route.js:27:11
at call (D:\blog\node_modules\connect\index.js:239:7)
at next (D:\blog\node_modules\connect\index.js:183:5)
at D:\blog\node_modules\hexo-server\lib\middlewares\header.js:9:5
at call (D:\blog\node_modules\connect\index.js:239:7)
at next (D:\blog\node_modules\connect\index.js:183:5)
at Function.handle (D:\blog\node_modules\connect\index.js:186:3)
at Server.app (D:\blog\node_modules\connect\index.js:51:37)
at emitTwo (events.js:106:13)
at Server.emit (events.js:191:7)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:546:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
用list_tag()产生了标签的连接,在tag.ejs中也写了相应的代码。
现在的问题是,我点击标签,在使用hexo s的时候,可以链接到有该tag的页面,我在tag.ejs中使用了page.posts.each函数,但是当我hexo g的时候,报错,说page.posts.each没有定义。
但是当我直接使用Hexo s的时候可以链接到对应的tag页面,而且控制台也没有任何错误
这个是我的地址。上面有tag,但是tag.ejs中没有写东西。写东西之后hexo g就出错了。很多地方显示的就有问题。https://yuzai.github.io/
我的代码:https://github.com/yuzai/exo_theme
这个版本的是在tag.ejs中使用了page.posts.each(),直接使用Hexo s可以正常工作且不报错,但是如果hexo g就会报上面的错误。很困惑
在执行git clone https://github.com/Haojen/hexo-theme-Anisina.git 后,将文件放入theme文件夹下,更改config的theme,执行hexo s,http://localhost:4000/ 页面空白。
debug显示
WARN No layout: index.html
GET / 200 8.630 ms - -
15:29:39.221 WARN No layout: index.html
GET / 200 0.891 ms - -
15:29:39.665 WARN No layout: index.html
GET / 200 0.796 ms - -
15:29:39.842 WARN No layout: index.html
GET / 200 0.381 ms - -
15:29:40.003 WARN No layout: index.html
GET / 200 0.396 ms - -
15:29:40.161 WARN No layout: index.html
GET / 200 0.343 ms - -
15:29:40.305 WARN No layout: index.html
GET / 200 0.581 ms - -
请问这是什么意思呀
把主题设为landscope显示是正常的
我配置tags的步骤如下:
是否更新一款评论类的插件
1、我的主题侧边栏主页不显示文章中的标签,像这样
/
2、我应用了的Works页面,怎么修改布局格式呢,我想要一个单页的模板
另发现tags页面不显示图片,找到主题/layout/tags 加上
header.intro-header{ background-image: url('http://ocnnxadky.bkt.clouddn.com/16-9-11/335924.jpg'); } header.site-heading { background-image: url('http://ocnnxadky.bkt.clouddn.com/16-9-11/335924.jpg'); }
就可以了
如何获取 ba_track_id 呢?
I followed the guide your provided:
SNS settings
github_username: scotthou94 # modify this account to yours
But nothing happened, no github link is displayed in the sidebar.
should I provide the full address of my github account?
配置好works works页面是空的,怎么样添加一个作品呢,像您的博客的作品集一样。
打开文章的上方的图片在哪设置显示的啊,我一直在弄这个主题就这张图片不知道在哪设置显示
你好,很高兴使用这么漂亮的主题,想问一下如何添加网站上方栏目条的内容,比如about,tags等。
uncaught exception: This is not a valid install key: 'undefined'; it must be of length 20.
请问css中,如下class:
.t
.section-heading
.captain
.floating-label-form-group
.floating-label-form-group-with-value
.floating-label-form-group-with-focus
我在主题模板中找遍了也没有找到这几个class的存在,请问是否可以删去这些class呢?
使用hexo new page "about" 添加about界面后出现以下错误,已经是clone最新代码
Unhandled rejection ReferenceError: /Users/deng/Documents/hexoFile/ghdengdlog/themes/Anisina/layout/page.ejs:145
如果hexo new page "about"的话,hexo g就不能通过,必须删除about目录。是不是主题哪里的设置我还没配置?
侧边栏设置后仍不显示
Unhandled rejection ReferenceError: /Users/liubiao/git/shuangshiji/themes/anisina/layout/page.ejs:145
143|
145| <%- page.content || body%>
146|
body is not defined
at eval (eval at (/Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:242:14), :30:4583)
at eval (eval at (/Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:242:14), :30:12238)
at /Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/theme/view.js:29:15)
at /Users/liubiao/git/shuangshiji/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/Users/liubiao/git/shuangshiji/node_modules/bluebird/js/release/util.js:16:23)
at /Users/liubiao/git/shuangshiji/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:355:10)
at resume (_stream_readable.js:739:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Unhandled rejection ReferenceError: /Users/liubiao/git/shuangshiji/themes/anisina/layout/page.ejs:145
143|
145| <%- page.content || body%>
146|
body is not defined
at eval (eval at (/Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:242:14), :30:4583)
at eval (eval at (/Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:242:14), :30:12238)
at /Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/theme/view.js:29:15)
at /Users/liubiao/git/shuangshiji/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/Users/liubiao/git/shuangshiji/node_modules/bluebird/js/release/util.js:16:23)
at /Users/liubiao/git/shuangshiji/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:355:10)
at resume (_stream_readable.js:739:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
Unhandled rejection ReferenceError: /Users/liubiao/git/shuangshiji/themes/anisina/layout/page.ejs:145
143|
145| <%- page.content || body%>
146|
body is not defined
at eval (eval at (/Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:242:14), :30:4583)
at eval (eval at (/Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:242:14), :30:12238)
at /Users/liubiao/git/shuangshiji/node_modules/ejs/lib/ejs.js:255:15
at _compiled (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/theme/view.js:127:30)
at View.render (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/theme/view.js:29:15)
at /Users/liubiao/git/shuangshiji/node_modules/hexo/lib/hexo/index.js:387:25
at tryCatcher (/Users/liubiao/git/shuangshiji/node_modules/bluebird/js/release/util.js:16:23)
at /Users/liubiao/git/shuangshiji/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/Users/liubiao/git/shuangshiji/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (stream_readable.js:355:10)
at resume (_stream_readable.js:739:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
作者能否帮忙看下,我对css实在是不熟~
怎样添加archives页面和其他页面
我按照步骤设置tags, 现在tags都是灰色的, 并没有任何颜色.
不知道是不是有什么需要额外设置的地方?
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.