Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags不能用 #3

Open
pkaq opened this issue Sep 4, 2013 · 1 comment
Open

Tags不能用 #3

pkaq opened this issue Sep 4, 2013 · 1 comment

Comments

@pkaq
Copy link

pkaq commented Sep 4, 2013

我用了最新的Hexo,但使用了撸主的主题后只要添加tags就会爆粗如下错误。。。

[error] 21:38:03.154 HexoError: Render failed: index.html
TypeError: h:\rsww\themes\greyshade\layout\index.ejs:3
1|


2| <% page.posts.each(function(item){ %>

3| <%- partial('_partial/post', {item: item, index: true}) %>
4| <% }); %>
5|


6|

h:\rsww\themes\greyshade\layout_partial\post.ejs:2
1|

2| <%- partial('article', {item: item, index: index})%>
3|


4| <% if(!index) { %>
5| <%- partial('post/sharing') %>

h:\rsww\themes\greyshade\layout_partial\article.ejs:5
3|


4| <%- partial('post/date', {type: "index"}) %>

5| <%- partial('post/tag', {type: "index"}) %>
6| <% if(item.comment & config.disqus_shortname) { %>
7|
8| Comments

h:\rsww\themes\greyshade\layout_partial\post\tag.ejs:9
7| } %>
8| <% if(item.tags && item.tags.length) { %>

9| <%
10| var tags = [];
11| item.tags.forEach(function(tag){
12| tags.push('' + tag.name + '');

Cannot read property 'path' of null

@xuzhao9
Copy link
Owner

xuzhao9 commented Oct 2, 2013

我的源码中并没有“ ' + tag.name + '');”这一行……麻烦git pull一下再看看还有同样的问题吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants