Skip to content

Correct way to generate a Table of Contents (top) in Nuxt Content v2? #1343

Answered by jshimkoski
jshimkoski asked this question in Q&A
Discussion options

You must be logged in to vote

Just realized that I had missed the toc key inside doc.body. Doh!

So, for anyone else wondering the same thing, look for doc.body.toc and that will provide you an array of links that you can use to generate your table of contents.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@orenmizr
Comment options

@oneminch
Comment options

@andika-eka
Comment options

@Larscode-io
Comment options

Answer selected by jshimkoski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants