Add this template where the TOC should be, while specifying the limit parameter to define the deepest level of headings that should be shown.
limit