fix toc links
Merge branch 'master' into gh-pages
update templates