问题描述
我正在使用blogdown
和wowchemy-hugo
主题在R中创建网站。我创建了一个帖子,但是我在YAML中插入的图像在标头出于某种奇怪的原因。我已将图像保存在static\image\headers\gdp.jpg
下的文件夹中,是否丢失了某些内容?
---
title: "This is my title"
author: "This is my name"
date: 2020-09-10T21:13:14-05:00
tags: ["Tag1","Tag2","Tag3"]
header:
caption: 'Image Credit: [**AvaTrade**](https://www.avaTrade.com/education/Trading-for-beginners/gross-domestic-product)'
image: 'headers/gdp.jpg'
focal_point: ""
preview_only: false
output: html_document
---
TIA!
解决方法
找出问题所在。图像需要保存在media
内的static
子文件夹中(而不是保存在image
下)。参见:https://wowchemy.com/docs/managing-content/