I'm trying to add an image preview to a post using hugo-academic and compiling from .Rmd with blogdown, and I can't figure out what to do in the YAML preamble.
Some related posts that have not provided a solution include:
-Include image preview in blogdown (.Rmd yaml header)
-How to add feature or thumbnail image for post in .Rmd file
Hugo-academic wants this in a TOML preamble:
---
[header]
image="path"
---
According to the blogdown book, this is a table in TOML. But square brackets appear to be flow control operators in YAML, and escaping them with backslashes stops the complaints about compiling but does not result in the desired behavior; image: "path"
is apparently ignored as any string can be substituted for "path" without change in behavior. At least bookdown is putting the image in the right place in public/img/headers.
So what am I missing? How do I get an image preview for a post in hugo-academic when starting from .Rmd?