Table of Contents Hyperlinks not working


#1

Hi all,
I am having an issue with my table of contents on my website. As of now, the hyperlinks do not redirect to the section for my website: justinzhu.me

  1. what you were doing or what you tried: I was making my home page display the table of contents for each of my posts under content

  2. what you expected I expected the pink hyperlinks to redirect to my posts

  3. what actually happened Instead nothing happened. No redirect to my posts.

Is there a way for me to modify the Table of Contents settings {{ .TableOfContents }} such that the links actually work? Much thanks and appreciation for all the support :slight_smile:


#2

The relevant code is here. I’m primarily concerned as to how to modify that {{ .TableOfContents }} snippet. Thanks again!