midway hack to get TOC auto-generated on every page