cook.sh: move the "New Topics" generation to the template handler code