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

Display and style the Table of Contents for posts where it's enabled #19

Open
monacodelisa opened this issue Mar 4, 2024 · 0 comments

Comments

@monacodelisa
Copy link
Member

monacodelisa commented Mar 4, 2024

Describe the solution you'd like
On Hashnode there is an option to display Table of Contents for each blog.
Working on this issue requires the following:

  • investigate why the table of contents is not showing, possibly it requires an additional GraphQL query
  • perform a check to see if the table of contents is enabled
  • conditionally display the table of contents in the post-detais component if it is enabled, to be placed below the cover image
  • style the table of contents - we want to use an expansion panel for it
  • there are various ways to achieve that in this app version the way to do it is by utilizing components provided by PrimeNG
  • discuss your proposed solution, try and test different options
  • table of contents may be a partial component if it makes sense

Additional context
image

@monacodelisa monacodelisa changed the title Display and style the Table of Contents for posts where it's enabled Display and style the Table of Contents for posts where it's enabled Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant