Skip to content

Inactive links in the right navigation TOC #333

Description

@yphil-dev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions