- 🌱 I have a blog.
- 🤔 I'm learning PLT.
- 👨💻 I'm currently working at Ele.me.
kevinofneu / hexo-theme-xoxo Goto Github PK
View Code? Open in Web Editor NEWHexo theme for https://blog.0xff000000.com
Hexo theme for https://blog.0xff000000.com
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
post.ejs:28
26|
27| /
28|
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)
点阅读全文的时候出现的
或者在tag.ejs
中直接把分类加在后面也可。
另外评论可用 https://valine.js.org/
问一下我怎么设置我的头像, 以及网站的favorite的小图标?
在用这个主题时发现点击数出不来,去不蒜子网站看了下,9月份更换了域名了。
把head.ejs 中的
dn-lbstatics.qbox.me
修改成了
busuanzi.ibruce.info
不得不说主题很棒!
https://github.com/KevinOfNeu/hexo-theme-xoxo/blob/master/layout/partials/scripts.ejs#L105
此处应该为substring,按起止点截取content
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.