Giter Site home page Giter Site logo

hexo-theme-indigo-plus's People

Contributors

abelsu7 avatar brendaniel avatar cjsoft avatar gdshen avatar gitter-badger avatar greedyhao avatar hexobot avatar koakumaping avatar mmmwhy avatar mrjohannchang avatar noahdragon avatar ohyee avatar q234rty avatar ruochuan12 avatar ryancui92 avatar ssarcandy avatar ssdna avatar wouterjanson avatar xdcxdc avatar yscoder avatar ystyle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hexo-theme-indigo-plus's Issues

设置root后部分prism的js资源路径错误

我需要将网页部署的到一个子文件夹中,即A.com/B 中,设置博客页面下的root选项后,大部分资源能够加载,但是prism的js无法加载,请求的链接是原来的链接

关于代码块问题~

修改了_config.yml文件的prims代码主题,网站加载的时候也加载了对应js和css,但是代码块还是没有改变。求大佬捞一把~

能否支持indigo的自定义页面

您好,试用了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');

如何解决?万望不吝赐教。

Unhandled rejection ReferenceError

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)

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.