abelsu7 / hexo-theme-indigo-plus Goto Github PK
View Code? Open in Web Editor NEW💾hexo-theme-indigo 主题优化版
Home Page: https://abelsu7.top
License: The Unlicense
💾hexo-theme-indigo 主题优化版
Home Page: https://abelsu7.top
License: The Unlicense
我需要将网页部署的到一个子文件夹中,即A.com/B 中,设置博客页面下的root选项后,大部分资源能够加载,但是prism的js无法加载,请求的链接是原来的链接
能否更新一下呀,大大
修改了_config.yml文件的prims代码主题,网站加载的时候也加载了对应js和css,但是代码块还是没有改变。求大佬捞一把~
您好,试用了indigo-plus觉得很棒,谢谢。
另外,我看到原作者对markdown进行了扩展,主题 Card 分支为自定义页面提供了定制化模块支持。我不太懂这方面的东西,搞不定。作者闲暇能否支持下。
不好意思,我又来了。看了控制台信息,TOC的确实生成了锚点链接,但是点击之后不跳转。然后发现只要是有中文,锚点就会失效。求解答~
如题,我在尝试把这个主题移植到Hexo5上。Hexo5不支持Lodash了,所以我找出来出错的代码改掉,之后成功生成。
但是,当文章中有中文的标题时(比如## 你好
),整个文章页面是空的,但是里面的链接又能点。
控制台报错:
main.min.js?v=1.7.2:formatted:122
Uncaught TypeError: Cannot read property 'parentNode' of null
at main.min.js?v=1.7.2:formatted:122
at main.min.js?v=1.7.2:formatted:168
at main.min.js?v=1.7.2:formatted:469
(anonymous) @ main.min.js?v=1.7.2:formatted:122
(anonymous) @ main.min.js?v=1.7.2:formatted:168
(anonymous) @ main.min.js?v=1.7.2:formatted:469
search.min.js?v=1.7.2:1
Uncaught TypeError: l is not a function
at search.min.js?v=1.7.2:1
at search.min.js?v=1.7.2:1
(anonymous) @ search.min.js?v=1.7.2:1
(anonymous) @ search.min.js?v=1.7.2:1
对应的代码
var bannerH = $('.post-header').clientHeight
, headerH = header.clientHeight
, titles = $('#post-content').querySelectorAll('h1, h2, h3, h4, h5, h6');
>> toc.querySelector('a[href="#' + titles[0].id + '"]').parentNode.classList.add('active');
var tocChilds = toc.querySelectorAll('.post-toc-child');
for (i = 0,
len = tocChilds.length; i < len; i++) {
tocChilds[i].classList.add('post-toc-shrink');
如何解决?万望不吝赐教。
hexo g
可以正常生成,但是hexo s
的启动的时候访问会报如下的错:
Unhandled rejection ReferenceError: ./MyBlog/themes/indigo-plus/layout/post.ejs:9
7| %>
8| <div class="container body-wrap">
>> 9| <%- partial('_partial/post', {post: page }) %>
10| </div>
11|
.//MyBlog/themes/indigo-plus/layout/_partial/post.ejs:17
15| </div>
16|
>> 17| <%- partial('post/copyright') %>
18| <%- partial('post/reward-btn') %>
19|
20| <div class="post-footer">
./MyBlog/themes/indigo-plus/layout/_partial/post/copyright.ejs:6
4| <%- partial('updated') %>
5| <% if(theme.postMessage) {%>
>> 6| <%- _.template(theme.postMessage)(locals) %>
7| <% } %>
8| </div>
9| <% } %>
_ is not defined
at eval (./MyBlog/themes/indigo-plus/layout/_partial/post/copyright.ejs:21:17)
at copyright (./MyBlog/node_modules/ejs/lib/ejs.js:682:17)
at _View._compiledSync (./MyBlog/node_modules/hexo/lib/theme/view.js:132:24)
at _View.renderSync (./MyBlog/node_modules/hexo/lib/theme/view.js:59:25)
at Object.partial (./MyBlog/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
at eval (./MyBlog/themes/indigo-plus/layout/_partial/post.ejs:39:17)
at post (./MyBlog/node_modules/ejs/lib/ejs.js:682:17)
at _View._compiledSync (./MyBlog/node_modules/hexo/lib/theme/view.js:132:24)
at _View.renderSync (./MyBlog/node_modules/hexo/lib/theme/view.js:59:25)
at Object.partial (./MyBlog/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
at eval (./MyBlog/themes/indigo-plus/layout/post.ejs:23:17)
at post (./MyBlog/node_modules/ejs/lib/ejs.js:682:17)
at _View._compiled (./MyBlog/node_modules/hexo/lib/theme/view.js:136:50)
at _View.render (./MyBlog/node_modules/hexo/lib/theme/view.js:39:17)
at ./MyBlog/node_modules/hexo/lib/hexo/index.js:64:21
at tryCatcher (./MyBlog/node_modules/bluebird/js/release/util.js:16:23)
at ./MyBlog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (./MyBlog/node_modules/hexo/lib/hexo/router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:481:10)
at resume_ (internal/streams/readable.js:977:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
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.