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

Template Error #18

Open
Pines-Cheng opened this issue Aug 18, 2017 · 1 comment
Open

Template Error #18

Pines-Cheng opened this issue Aug 18, 2017 · 1 comment

Comments

@Pines-Cheng
Copy link

页面显示Template Error。

报错如下:

main.min.js:2 Template Error

<id>
anonymous

<name>
Render Error

<message>
Cannot read property 'length' of undefined

<line>
1

<source>
<%$.each(blogs, function(i, blog) {%>        <article>        <span class="date"><%=$.spring.fn.getDate(blog.created_at)%></span>        <h3><a href="<%=blog.html_url%>" data-href="#issues/<%=encodeURIComponent(blog.number)%>" class="taplink"><%=blog.title%></a></h3>        <%if(blog.labels.length) {%>        <p class="tag">          <%$.each(blog.labels, function(j, label) {%>          <a href="https://github.com/<%=$.spring.config.owner%>/<%=$.spring.config.repo%>/issues?labels=<%=encodeURIComponent(label.name)%>&page=1&state=open" class="taplink" style="background: #<%=label.color%>" data-href="#labels/<%=encodeURIComponent(label.name)%>"><%=label.name%></a>          <%})%>        </p>        <%}%>        </article>        <%})%>
@geekyouth
Copy link

geekyouth commented Sep 8, 2018

你是不是用的码云 gitee ???
我第一次用码云部署也是提示模板错误。
改成github fork之后
我已经部署成功了
https://geekyouth.github.io/blog/
💯

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