TOC missing in .Rmd
MichalLauer opened this issue · comments
Michal Lauer commented
Describe the bug
.Rmd files do not have TOC generated, but .md files do.
To Reproduce
Steps to reproduce the behavior:
- Create sample Hugo project with this template
- Create .Rmd file in content/post or content/blogs
- Generate site
- See no TOC
Expected behavior
There should be a TOC generated from the file structure.
Screenshots
Generated website (modified to .Rmd)
yaml header
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Version: 105.0.5195.102
Guru Sabarish commented
Hii @MichalLauer , try to add toc: false
instead of toc: null
Michal Lauer commented
Hi,
after some googling it's not a template issue but hugo/blogdown issue. I needed to specify HTML output, not .md output:)