Featured image using rmd in hugo-academic

Viewed 899

How can I create a image preview for a post in hugo-academic when using R Markdown?TOML uses the following syntax:

[image]
  # Caption (optional)
  caption = ""

  # Focal point (optional)
  # Options: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight
  focal_point = ""

However, if I use this in the rmd, it doesn't work.

---
image:
    caption:''
    focal_point:''
---
1 Answers

The post shared by declast is very useful. Specifically for me, I changed the name of my Rmd file to index.Rmd, then everything worked.

Related