cccyb / hexo-theme-pinghsu Goto Github PK
View Code? Open in Web Editor NEWA Hexo theme transplanted from Typecho Theme Pinghsu.
Home Page: https://chenyubo.me
License: MIT License
A Hexo theme transplanted from Typecho Theme Pinghsu.
Home Page: https://chenyubo.me
License: MIT License
如题
ERROR /Users/urzz/Project/own/other/blog/themes/pinghsu/layout/tag.ejs:8
6| <%- partial('_partial/page-archive') %>
7|
>> 8| <%- partial('_partial/footer') %>
/Users/urzz/Project/own/other/blog/themes/pinghsu/layout/_partial/footer.ejs:26
24| <p>Theme is <a href="https://github.com/cccyb/hexo-theme-pinghsu" target="_blank">Pinghsu</a> by <a href="<%= config.url %>" target="_blank"><%= config.author %></a></p>
25| <p>Powered by <a href="https://hexo.io/" target="_blank" rel="nofollow">hexo</a></p>
>> 26| <p style="margin-top: 10px">站点总字数:<%= totalcount(site) %></p>
27| <% if (theme.busuanzi) { %>
28| <p><span id="busuanzi_container_site_pv" style='display:none'><%- __('views.text') %> <span id="busuanzi_value_site_pv"></span> <%- __('views.unit') %></span></p>
29| <p><span id="busuanzi_container_site_uv" style='display:none'><%- __('vistors.text') %> <span id="busuanzi_value_site_uv"></span> <%- __('vistors.unit') %></span></p>
totalcount is not defined
ReferenceError: /Users/urzz/Project/own/other/blog/themes/pinghsu/layout/tag.ejs:8
6| <%- partial('_partial/page-archive') %>
7|
>> 8| <%- partial('_partial/footer') %>
/Users/urzz/Project/own/other/blog/themes/pinghsu/layout/_partial/footer.ejs:26
24| <p>Theme is <a href="https://github.com/cccyb/hexo-theme-pinghsu" target="_blank">Pinghsu</a> by <a href="<%= config.url %>" target="_blank"><%= config.author %></a></p>
25| <p>Powered by <a href="https://hexo.io/" target="_blank" rel="nofollow">hexo</a></p>
>> 26| <p style="margin-top: 10px">站点总字数:<%= totalcount(site) %></p>
27| <% if (theme.busuanzi) { %>
28| <p><span id="busuanzi_container_site_pv" style='display:none'><%- __('views.text') %> <span id="busuanzi_value_site_pv"></span> <%- __('views.unit') %></span></p>
29| <p><span id="busuanzi_container_site_uv" style='display:none'><%- __('vistors.text') %> <span id="busuanzi_value_site_uv"></span> <%- __('vistors.unit') %></span></p>
totalcount is not defined
at eval (eval at exports.compile (/Users/urzz/Project/own/other/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:1728)
at eval (eval at exports.compile (/Users/urzz/Project/own/other/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:30:16456)
at /Users/urzz/Project/own/other/blog/node_modules/ejs/lib/ejs.js:255:15
at Theme._View.View._compiledSync.locals [as _compiledSync] (/Users/urzz/Project/own/other/blog/node_modules/hexo/lib/theme/view.js:120:22)
at Theme._View.View.View.renderSync (/Users/urzz/Project/own/other/blog/node_modules/hexo/lib/theme/view.js:48:23)
at Object.partial (/Users/urzz/Project/own/other/blog/node_modules/hexo/lib/plugins/helper/partial.js:39:15)
at Object.wrapper [as partial] (/Users/urzz/Project/own/other/blog/node_modules/lodash/lodash.js:4949:19)
at eval (eval at exports.compile (/Users/urzz/Project/own/other/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:33:99)
at eval (eval at exports.compile (/Users/urzz/Project/own/other/blog/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:33:136)
at /Users/urzz/Project/own/other/blog/node_modules/ejs/lib/ejs.js:255:15
at Theme._View.View._compiled.locals [as _compiled] (/Users/urzz/Project/own/other/blog/node_modules/hexo/lib/theme/view.js:124:48)
at Theme._View.View.View.render (/Users/urzz/Project/own/other/blog/node_modules/hexo/lib/theme/view.js:29:15)
at route.set (/Users/urzz/Project/own/other/blog/node_modules/hexo/lib/hexo/index.js:386:29)
at tryCatcher (/Users/urzz/Project/own/other/blog/node_modules/bluebird/js/release/util.js:16:23)
at /Users/urzz/Project/own/other/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/Users/urzz/Project/own/other/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:442:10)
at resume_ (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
首先十分感谢你将pinghsu主题移植到hexo,这个主题真的很好看。不过在使用过程中我发现3个问题。
hexo-theme-pinghsu/layout/_partial/footer.ejs
Line 107 in 6062520
elem.id = id + guid++;
用chrome调试正常。不过应该也可以直接把中文超链接进行解码。a href="#"
没有id吗?不过我的处理方法是再设了一个<a id="top" class="anchor-top"></a>
,然后css里面设置top:0px;
。向上箭头的超链接改为<a href="#top">
就行。site.posts.length
比较好。hexo-theme-pinghsu/layout/archive.ejs
Line 7 in 6062520
<% if (page.total > 1) { %>
<div class="lists-navigator clearfix">
<%- partial('_partial/pagination') %>
</div>
<% } %>
另外,我自己在你的基础上自己也做了个博客,加入了看板娘和站内搜索,修改了一些无效的分享链接,加了一些简单的特效,欢迎参观~
footer.ejs文件的26行
<p style="margin-top: 10px">站点总字数:<%= totalcount(site) %></p>
Unhandled rejection ReferenceError: /Users/../hexo/themes/pinghsu/layout/index.ejs:93
首先感谢作者提供了这个精美的主题,请问是否可以像NexT主题那样,点击图片可以放大呢》
如果github使用https,那么文中的http的图片资源在页面访问的时候强转为https,导致图片资源无法访问,求教
底部白块在移动端包裹不了所有文字
建议在css里.footer-meta标签添加height: 200px;
ERROR ReferenceError: /Users/damon/weiyun/blog/zao/themes/pinghsu/layout/page.ejs:6
4| <%- partial('_partial/page-tag') %>
5| <% } else { %>
>> 6| <%- partial('_partial/page-custom') %>
7| <% } %>
/Users/damon/weiyun/blog/zao/themes/pinghsu/layout/_partial/page-custom.ejs:1
>> 1| <%- partial('_partial/header', {
2| title: page.title,
3| bgColor: 'bg-white'
4| }) %>
/Users/damon/weiyun/blog/zao/themes/pinghsu/layout/_partial/header.ejs:78
76| </a>
77| <div class="navbar-menu">
>> 78| <% _.forIn(theme.menu, function(value, key) { %>
79| <a href="<%- url_for(value) %>" class="<% if (is_current(value)) { %>current<% } %>"><%= __('menu.' + key) %></a>
80| <% }); %>
81| </div>
_ is not defined
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.