我正在使用Hugo的学术主题在R.
我使用一个RMarkdown文件创建了一个博客文章。如果我有兴趣在文章的标题中插入图片,我应该将它保存到文件夹结构中的哪个路径,以及如何将它包含在我的YAML/markdown代码中?
我的YAML如下:
---
title: "Do oil prices explain the South African Rand's Performance?"
author: "Tangeni Shatiwa"
date: 2020-06-11T21:13:14-05:00
tags: ["South African Rand", "Brent Crude Oil", "Global Uncertainty","Non-Linear Spline Regression"]
output: html_document
---理想情况下,我希望在我的帖子内容开始之前,在标题下面出现一张图片。
蒂娅!
发布于 2020-06-12 07:49:16
这是可能的!您可以在文件夹中包含名为featured.jpg (或featured.png)的文件和post标记文件。
然后,您只调整YAML标题:
---
title: "Do oil prices explain the South African Rand's Performance?"
author: "Tangeni Shatiwa"
date: 2020-06-11T21:13:14-05:00
tags: ["South African Rand", "Brent Crude Oil", "Global Uncertainty","Non-Linear Spline Regression"]
output: html_document
image:
caption: "Oil can"
focal_point: "Center"
alt_text: This is a picture of oil can.
---https://stackoverflow.com/questions/62339394
复制相似问题