Giter VIP home page Giter VIP logo

hexo-theme-anisina's People

Contributors

0xflotus avatar doge1024 avatar haojen avatar hiphopcoders avatar kushnee avatar lagelalegal avatar perixiaowan avatar slmoore avatar yygcui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-anisina's Issues

在写一个主题,但是tags处遇到了问题

用list_tag()产生了标签的连接,在tag.ejs中也写了相应的代码。
image
现在的问题是,我点击标签,在使用hexo s的时候,可以链接到有该tag的页面,我在tag.ejs中使用了page.posts.each函数,但是当我hexo g的时候,报错,说page.posts.each没有定义。
image
image
但是当我直接使用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就会报上面的错误。很困惑

移动端显示有遮挡

机型:米4

浏览器:夸克浏览器,x浏览器,自带浏览器


下半区域直接不显示

如何创建about页面

如果hexo new page "about"的话,hexo g就不能通过,必须删除about目录。是不是主题哪里的设置我还没配置?

social link is not working

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?

tags are not working

I just create tags, but it looks like this:

blog
Untitled
Untitled
Untitled
Untitled
Untitled
Untitled
Untitled

Why this happend?

有关css中的某些class

请问css中,如下class:
.t
.section-heading
.captain
.floating-label-form-group
.floating-label-form-group-with-value
.floating-label-form-group-with-focus
我在主题模板中找遍了也没有找到这几个class的存在,请问是否可以删去这些class呢?

如何添加一个栏目条

你好,很高兴使用这么漂亮的主题,想问一下如何添加网站上方栏目条的内容,比如about,tags等。

创建about页面出错

使用hexo new page "about" 添加about界面后出现以下错误,已经是clone最新代码
Unhandled rejection ReferenceError: /Users/deng/Documents/hexoFile/ghdengdlog/themes/Anisina/layout/page.ejs:145

144|
> 145| <%- body %> 146|
147| 148|

首页的图片显示不准确

您好 ,更新了新版本后,首页的那张图片显示不准确 因为现在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"]:"" %>')">

这样首页图就可以显示啦 :)

生成的tag点开是404

生成的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)

Theme change problem

在之前我使用 cyanstyle 主题,现在切换到这个主题。在我执行 hexo server 的时候,提示我无法找到 index.html

post-default-img显示问题

博主,您好,
在根目录下的_config.xml默认设置了post-default-img
后,诗歌类,在文章列表会显示默认的post-default-img图片。
fireshot capture 3 - - http___localhost_4000_

博文的 front-matter 上指定图片header-img后,进入文章页面,背景图片也默认被设置成了该header-img。能否增加一个分别设定文章列表背景图和header-img的设置项?毕竟有些header-img不适合做背景图。

另外,诗歌的排版能否考虑增加从右到左的选项,感觉这样一些古体诗词更有韵味。

谢谢。

header-img无法显示的问题

博主大大,

我试了半天就是不知道怎么设置让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地址

文件结构是这样的
screen shot 2017-04-18 at 4 04 32 pm

主页的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

我想把图片存本地,有什么解决办法吗?
多谢

absolute path or relative path

首先,很感谢作者的共享精神,模板很漂亮!
但是,我在部署的时候遇见了一些问题,看了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
这种情况下无轮是首页还是文章页都是绝对路径,所以都能正确加载图片.

hexo g error

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)

tags不能正常显示

我配置tags的步骤如下:

  1. 创建source/tags/index.md
  2. 在index.md中添加一行type: tags
    我的每篇文章都有tags并且可以在博客首页的侧边栏显示出来,但当我点击任何一个tag的时候,跳转到/tags/#...页面上,页面中只出现了一行type: tags。
    不清楚这是什么原因造成的,以及你这个主题正确配置tags&categories的步骤是什么。谢谢。

首页文章的默认背景图片

您好 ,很喜欢您的主题,我遇到的一个问题是首页一打开以后,正常来说第一篇文章是有个背景图的,可是那个背景图一直是灰色的显示不出来,我填写了默认的post-default-img ,在打开文章以后,header显示背景图片又是正常的。我不知道还能改哪里,其他的地方也试过了,您能帮我解答一下吗 谢谢你 我的地址是http://xxxxxdog.github.io

首页不显示标签,Wokrs页面怎么修改模板

1、我的主题侧边栏主页不显示文章中的标签,像这样
default/
2、我应用了的Works页面,怎么修改布局格式呢,我想要一个单页的模板
default

另发现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'); }
就可以了

hexo g 报错(前面几个方法都已试过,无效)

`Unhandled rejection ReferenceError: H:\hexo\themes\Anisina\layout\page.ejs:145
143|


144|

145| <%- page.content || body %>
146|


147|
148| <div class="

body is not defined
`

把所有已有文章给删除了,再new一篇,hexo g 之后报错,重新构建hexo项目,再pull下这个主题,也不行。

WARN No layout: index.html

在执行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显示是正常的

建议增加新的评论插件

Disqus国内被不可描述, 而多说宣布将在2017年7月1日停止对多说评论插件的一切支持. 希望作者能加入对其他诸如友言等插件的支持, 谢谢!

hexo g报错

使用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

http的cdn加载失败

github.io 强制使用https,http 的cdn失效了。
建议把footer.ejs 和 head.ejs 的cdn 改成https
ps 你的主题真漂亮~

hexo g报错

按默认的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|


144|

145| <%- body %>
146|


147|
148| <div class="

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|


12|

13|

<%= config.archive.title || config.title %>


14| <%= config.archive.description || config.subtitle || "" %>
15|

16|

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|


12|

13|

<%= config.archive.title || config.title %>


14| <%= config.archive.description || config.subtitle || "" %>
15|

16|

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|


12|

13|

<%= config.archive.title || config.title %>


14| <%= config.archive.description || config.subtitle || "" %>
15|

16|

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

去掉body不報錯,首頁不展示文章,打開編譯就會報錯

Unhandled rejection ReferenceError: /Users/liubiao/git/shuangshiji/themes/anisina/layout/page.ejs:145
143|


144|

145| <%- page.content || body%>
146|


147|
148| <div class="

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|


144|

145| <%- page.content || body%>
146|


147|
148| <div class="

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|


144|

145| <%- page.content || body%>
146|


147|
148| <div class="

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呢,我的博客地址zhanghuaizheng.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.