Edition theme - Creating Table of contents specific to this theme

Can anyone help me with a simple code to either paste in the theme files of Edition theme or the header/footer section of ghost that will create a robust table of content.

i have tried tutorials shown here for other themes, i seem to always get something wrong. please note that i am not a programmer. Appreciate the help.