Open your blog dashboard, in which site you want to add table of content.
Go to theme section and select edit HTML
In search box type closing head tag - by typing CTRL+F
Copy below code and paste exactly above