Hexo: Use toc() to link undefined

Created on 23 May 2019  ·  6Comments  ·  Source: hexojs/hexo

Environment Info

Node: 8.11.3
Hexo: 3.8.0
Hexo-toc: 1.0.8

For BUG

Error calling method( <%- toc(page.content, { "class": "toc-nav" }) %> )link address. Now its structure has become like this:

<ol class="toc-nav">
    <li class="toc-nav-item toc-nav-level-3">
         <a class="toc-nav-link" href="#undefined">
            <span class="toc-nav-number">1.</span> 
            <span class="toc-nav-text">HTML片段展示</span>
         </a>
    </li>
 </ol>
documentation question

Most helpful comment

@gautamz07
Thank you for following :)

I think it's better to wait for @wanghaijuan replay.
On the other hand, it's better if we update the example.

All 6 comments

I will try to update the example.

@YoshinoriN , do you guys close issues on here or does the bot detect and close issue..

@gautamz07
Thank you for following :)

I think it's better to wait for @wanghaijuan replay.
On the other hand, it's better if we update the example.

I don't know why this bug happened,and I pulled the new one again.

@wanghaijuan Why did you close it?


Also related is this recent PR which changed the toc https://github.com/hexojs/hexo/pull/3404

Was this page helpful?
0 / 5 - 0 ratings