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

feat!: Use semantic HTML <nav> element to wrap table of contents #614

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kaushalmodi
Copy link
Owner

There's a small chance that the user might need to tweak their site
CSS for this change.

  • Do not default to nav element. The TOC looks weird based on how some CSS libraries render the nav tags (see below). It's possible that that's the issue with that CSS library. But it would be good to not break rendering on any sites by leaving the TOC default element to the currently used div. Instead may be add a way to customize the TOC element.

nav elements with nested ul/li elements rendered by mvp.css

image

There's a small chance that the user might need to tweak their site
CSS for this change.
bmackinney pushed a commit to basa-casa/no-class that referenced this pull request Nov 23, 2022
Do not yet use nav elements for TOC because of the issue shown in the
screenshot in kaushalmodi/ox-hugo#614.
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

Successfully merging this pull request may close these issues.

1 participant