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

Add a "Table of Contents" to pages #63

Open
sc0ttj opened this issue May 19, 2019 · 0 comments
Open

Add a "Table of Contents" to pages #63

sc0ttj opened this issue May 19, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@sc0ttj
Copy link
Owner

sc0ttj commented May 19, 2019

Create a function to generate a table of contents (TOC):

  • to be used by screen readers (like the "Skip to content" link)
  • put it below post/page h2 heading, above first para content body
  • and optionally as an aside on large screens
  • should output small menu of links to headers, something like:
1. h2 name
  2. h3 name
    a. h4 name
    b. h4 name
  3. h3 name
  4. h3 name
    a. h4 name
    b. h4 name

NOTE:

TOC should not be added to index pages (homepage, categories, authors, tags), the search page, or the contact page..

@sc0ttj sc0ttj added the enhancement New feature or request label May 19, 2019
@sc0ttj sc0ttj changed the title Add a TOC to the page Add a "Table of Contents" to pages May 19, 2019
@sc0ttj sc0ttj changed the title Add a "Table of Contents" to pages Add a "Table of Contents" to post pages May 19, 2019
@sc0ttj sc0ttj changed the title Add a "Table of Contents" to post pages Add a "Table of Contents" to pages May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant