hexo-theme-cactus icon indicating copy to clipboard operation
hexo-theme-cactus copied to clipboard

Inactive links in the right navigation TOC

Open yphil-dev opened this issue 3 years ago • 2 comments

My links are inactive in the menu, and when I inspect them they are rendered like so:

<li class="toc-item toc-level-2">
  <a class="toc-link">
    <span class="toc-number">2.</span>
    <span class="toc-text">Header text</span>
  </a>
</li>

Specifically this:

---
title: TEST
date: 2022-10-13 15:57:05
tags:
---
## level 2
test text
## level 2
test text
### level 3
test text

Is rendered as:

<ol class="toc">
  <li class="toc-item toc-level-2"><a class="toc-link"><span class="toc-number">1.</span> <span class="toc-text">level 2</span></a></li>
  <li class="toc-item toc-level-2"><a class="toc-link"><span class="toc-number">2.</span> <span class="toc-text">level 2</span></a>
    <ol class="toc-child">
        <li class="toc-item toc-level-3"><a class="toc-link"><span class="toc-number">2.1.</span> <span class="toc-text">level 3</span></a></li>
    </ol>
  </li>
</ol>

They have no href! What could I have done to break the menu?

The site is here, and the sources are here, thanks again for this beautiful code & design.

I use hexo-generator-feed in some places too, but I tried disabling it to no avail.

Any idea about how to get the href properly printed, or disabling the menu in the meantime?

yphil-dev avatar Oct 13 '22 15:10 yphil-dev

Is this still an issue? I tested your provided markdown and on my system all three headlines have a href. I tested this with hexo server:

Screenshot 2023-01-04 at 12 48 46

metters avatar Jan 04 '23 11:01 metters

Is it working fine now? I'm having the same problem just like you. They have no herf

Shtraiy avatar Jan 17 '23 05:01 Shtraiy