【问题标题】:Featured image using rmd in hugo-academic在 hugo-academic 中使用 rmd 的特色图片
【发布时间】:2019-04-14 20:54:31
【问题描述】:

在使用 R Markdown 时,如何在 hugo-academic 中为帖子创建图像预览?TOML 使用以下语法:

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

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

但是,如果我在 rmd 中使用它,它就不起作用了。

---
image:
    caption:''
    focal_point:''
---

【问题讨论】:

    标签: r hugo blogdown


    【解决方案1】:

    declast分享的帖子很有用。特别是对我来说,我将我的 Rmd 文件的名称更改为 index.Rmd,然后一切正常。

    【讨论】:

      猜你喜欢
      • 2018-05-02
      • 1970-01-01
      • 2020-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-02
      • 1970-01-01
      • 2020-05-05
      相关资源
      最近更新 更多