GithubHelp home page GithubHelp logo

hexo-theme-xoxo's Issues

readingTime is not defined

ERROR ReferenceError: /Users/Yongke/Documents/homepage/themes/xoxo/layout/post.ejs:28
26|
27| /

28| 阅读耗时 <%=readingTime(page.content, '分钟') %>
29|
30|
31|

readingTime is not defined

大佬,请问报错这个是咋回事?

大佬,请教个问题,就是我在访问/tags页面的时候就报如下错误,发现page.posts是undefined的,网上找了好久没看到解决办法,请问怎么解决呢?谢谢

Unhandled rejection TypeError: D:\blog\themes\xoxo\layout\tag.ejs:4
    2| <div class="page tag-page" id="tag">
    3|   <h3 title="<%=page.tag%>涓嬬殑鏂囩珷"><%=page.tag%></h3>
 >> 4|   <% page.posts.each(function(article) { %>
    5|     <div class="tag-item">
    6|       <% if (article.link) { %>
    7|         <a href="<%=url_for(article.link)%>" target="_blank">

Cannot read property 'each' of undefined
    at eval (eval at compile (D:\blog\node_modules\ejs\lib\ejs.js:1:1), <anonymous>:14:19)
    at returnedFn (D:\blog\node_modules\ejs\lib\ejs.js:653:17)
    at Theme._View.View._compiled (D:\blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\blog\node_modules\hexo\lib\theme\view.js:29:15)
    at D:\blog\node_modules\hexo\lib\hexo\index.js:349:21
    at tryCatcher (D:\blog\node_modules\bluebird\js\release\util.js:16:23)
    at D:\blog\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (D:\blog\node_modules\hexo\lib\hexo\router.js:123:3)
    at RouteStream.Readable.read (_stream_readable.js:459:10)
    at resume_ (_stream_readable.js:948:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

访问页面报错

Unhandled rejection ReferenceError: /themes/hexo-theme-xoxo/layout/post.ejs:28
    26|     </span>
    27|       <span class="slash">/</span>
 >> 28|       <!-- <span class="read">阅读耗时 <%=readingTime(page.content, '分钟') %></span> -->
    29|     </header>
    30| 
    31|     <div class="post-content">

readingTime is not defined

readingTime方法找不到。

另外你的博客中搜索功能是自己另外开发的吧?并不包含在这个主题中?

请问这是怎么回事

Unhandled rejection ReferenceError: C:\Users\ttt\Desktop\HEXXX\themes\xoxo\layout\post.ejs:28
26|
27| /

28| 阅读耗时 <%=readingTime(page.content, '分钟') %>
29|
30|
31|

readingTime is not defined
at eval (C:\Users\ttt\Desktop\HEXXX\themes\xoxo\layout\post.ejs:32:7)
at post (D:\网站\node_modules\ejs\lib\ejs.js:682:17)
at viewFn._compiled (D:\网站\node_modules\hexo\lib\theme\view.js:136:48)
at viewFn.View.render (D:\网站\node_modules\hexo\lib\theme\view.js:41:15)
at D:\网站\node_modules\hexo\lib\hexo\index.js:61:21
at tryCatcher (D:\网站\node_modules\bluebird\js\release\util.js:16:23)
at D:\网站\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\网站\node_modules\hexo\lib\hexo\router.js:126:3)
at RouteStream.Readable.read (stream_readable.js:459:10)
at resume
(_stream_readable.js:948:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

点阅读全文的时候出现的

图片的设置

问一下我怎么设置我的头像, 以及网站的favorite的小图标?

busuanzi 改域名了

在用这个主题时发现点击数出不来,去不蒜子网站看了下,9月份更换了域名了。
把head.ejs 中的

dn-lbstatics.qbox.me

修改成了

 busuanzi.ibruce.info

不得不说主题很棒!

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.