Add a Table of Contents to your Ghost CMS Posts

Step 1: Setup JavaScript Code Injection

In Your Ghost Admin Panel, Navigate as Follows:

and then paste this:

And Save

⚠️ In Case you Forget to Save the script

Step 2: Add a Placeholder in Your Post

Open an Existing Post , or a new Post in your Admin Mode.

Most Normal People prefer having their Table of Contents at the Top of their Post, but its your post, place it wherever. You can create a placeholder by going to a new line (Make sure you see the + icon at the far left) and hit forward-slash / . Like this:

Now add the Following in the /html block:

Reply

or to participate.