kinggozhang / hexo-theme-ace

A Hexo Theme:ACE
Apache License 2.0
48 stars 7 forks source link

body is not define #2

Open ghost opened 5 years ago

ghost commented 5 years ago

page.ejs 报错 body is not define <%- page.content || body %> 什么都没改,就换了主题, hexo g 有部分功能不正常, 我这右侧标签永不了

kinggozhang commented 5 years ago

body的含义是调用者的content. 出现这种情况是因为调用者没有content. 你现在是index页面出问题还是post页面? 另外,你有多少篇博文?

ghost commented 5 years ago

就3个测试的页面, 生成静态文件 就报错, 现在换了其他主题了

kinggozhang commented 5 years ago

好的,等我重现后深究一下这个问题。

jsqing commented 5 years ago

这个问题处理了吗

kinggozhang commented 5 years ago

@badleqing 正常情况,这个错误不影响功能。请描述一下你遇到的情况。

jsqing commented 5 years ago

我new page 一个about页面,在navmenus里配置url /about 报这个错误

jsqing commented 5 years ago

@kinggozhang 我new page 一个about页面,在navmenus里配置url /about 报这个错误

kinggozhang commented 5 years ago

@badleqing hexo new page about以后, 会建立一个只有front-matter的页面。 这时候,你需要编辑一下source/about/index.md ,随便增加一点内容。比如:

this is about page.

保存退出,应该就好了。

jsqing commented 5 years ago

好的 ,感谢

------------------ 原始邮件 ------------------ 发件人: "kinggozhang"notifications@github.com; 发送时间: 2019年8月20日(星期二) 上午9:55 收件人: "kinggozhang/hexo-theme-ace"hexo-theme-ace@noreply.github.com; 抄送: "- Qing 丶"591839915@qq.com;"Mention"mention@noreply.github.com; 主题: Re: [kinggozhang/hexo-theme-ace] body is not define (#2)

@badleqing hexo new page about以后, 会建立一个只有front-matter的页面。 这时候,你需要编辑一下source/about/index.md ,随便增加一点内容。比如:

this is about page.

保存退出,应该就好了。

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ghost commented 5 years ago

image 本地运行的时候没问题,但是部署到github上就出现这个问题,请问有解决办法吗?

kinggozhang commented 5 years ago

@tester-wu 你确定github 支持hexo ? 我怎么记得只支持jekyll

ghost commented 5 years ago

@kinggozhang 之前部署过的,不过后来没怎么用,不知道怎么想的就删了。现在部署一直失败,不知道是不是不支持了。最近搞这个的时候,好像在哪里看过,支持hexo,jekyll,vuepress,都折腾过。vuepress部署成功了,但是主题不怎么好看,jekyll也成功了,目前在用。hexo如果直接fork别人的好像也没问题,但是自己改就出现上面的问题了。

kinggozhang commented 5 years ago

@tester-wu 看你贴出来的错误,感觉是不支持啊。 你可以把hexo theme设置为默认landscape, 部署一下看看能不能成功。

ghost commented 5 years ago

@kinggozhang 都试过,都是报类似的错,直接新建一个上传一个也报错。

kinggozhang commented 5 years ago

@tester-wu 那就是github不支持了。 你可以hexo g 后,然后把public目录内容传上来。