hg-7 update the ToC, reset it on article changes, add fake ad

When I added the `#if sections.length` conditional in the article handlebars template, I am pretty sure it dealt with this issue. I don't know why though, so I suppose it's good to have this hook here regardless.