Table of Contents Scope


I need to output the Table of contents outside of a post itself (in a section listing page). This headers output fine, but the anchor URLs are relative to the page I’m on. Is there a way to use an absolute url so clicking on the item takes you into the post at that anchor?

New to Hugo so any help would be great!