knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
This should not show a table of contents even though that's the default pkgdown default. But it should still have the default template.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.