Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inactive links in the right navigation TOC #333

Open
yPhil-gh opened this issue Oct 13, 2022 · 2 comments
Open

Inactive links in the right navigation TOC #333

yPhil-gh opened this issue Oct 13, 2022 · 2 comments

Comments

@yPhil-gh
Copy link

yPhil-gh commented Oct 13, 2022

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?

@metters
Copy link
Contributor

metters commented Jan 4, 2023

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

@Shtraiy
Copy link

Shtraiy commented Jan 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants