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

Sidebar & Table of Contents aren't rendered properly when word about is used as title. #1306

Open
ochrebasis opened this issue Nov 8, 2024 Discussed in #1305 · 1 comment

Comments

@ochrebasis
Copy link

Discussed in #1305

Originally posted by ochrebasis November 5, 2024

Issue:

The issue I'm encountering is that the table of contents and sidebar aren't appearing on content which is placed outside of the /content/docs/ subfolder.

The about page content mentioned below when placed under /content/docs/ behaves as expected.

Here's an example of what a misrendered webpage looks like:
issue

For example:

Has sidebar and toc:

  • /content/docs/page/_index.md
  • /content/docs/page/example.md

Does not have sidebar and toc:

  • /content/about/about-us/_index.md
  • /content/about/about-us/about-infosec-club.md
  • /content/about/about-us/infosec-leadership-and-advisors.md

Issue:

Specifically using the word about as an alternative 'docs' section breaks navbar and table of contents functionality.

Steps to reproduce:

  1. Create a new doks installation, with npm create thulite@latest -- --template doks, npm install, and host it locally with npm run dev.
  2. Create a new docs type section using npm run create -- --kind docs about.
  3. Edit params.toml to sectionNav = ["docs", "about"].
  4. Navigate to http://localhost:1313/about/lorem/ipsum.

This is not a major issue, regarding building a Doks website, I decided to go with different wording for the website I'm building instead. It's also possible this issue is something to do with Hugo that I have not been made aware of.

Either way, I'm posting this here to let anyone else know who encounters this issue to avoid using about as a sectionNav.

@h-enk
Copy link
Member

h-enk commented Nov 19, 2024

Thanks for reporting this

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

2 participants