How to Include Resources in the TOC

I’m trying to build a Hugo Page out of multiple Markdown files in a page bundle. Using .Site.GetPage does what I needed but does not produced the correct Table Of Contents.

I’ve read through many threads in this community but I still can’t understand why this doesn’t work.

Steps to Reproduce:
Run Hugo serve in the git repo referenced in this post to produce the output below.

Why aren’t “Pin 1 Heading” and “Pin 2 Heading” included in the Table of Contents?

Thanks for your help?

Introduction

Pins

Pin 1 Heading

Pin 1 Content

Pin 2 Heading

Pin 2 Content



Check out this one.

Thanks, still took me some random permutation edits to get it working but it finally does. I’ve updated the repo to reflect the changes that solved this for me.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.