更改Blogdown about.md文件中通过插入图像选项插入的图像大小



我正在尝试更改Blogdown about.md文件中头像的大小。主题是雨果锂。

我已使用"加载项"中的"插入图像"选项将图像插入about.md文件。出现在查看器中的图片的大小是巨大的。生成的代码如下所示:

---
date: "2020-07-22T21:48:51-07:00"
title: About
---
![](/./about_files/Monika_headshot.png)
I am passionate about empowering all individuals who care about the empirical underpinnings of policy, with direct access to data.

当我尝试预览时,即使图像在指示的文件中,我也会出现以下错误。

pandoc: /./about_files/Monika_headshot.png: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Execution halted

我试着用降价的方式改变尺寸,当我这样做的时候,图像完全消失了:

![](/./about_files/Monika_headshot.png =250x250)

![](/./about_files/Monika_headshot.png | width=100))

这两种方法都不起作用。我还能做什么?

我删除了Blogdown about.md文件中的内容,并将其复制粘贴到一个新的about文件中。Rmd,它在about.md文件的同一文件夹中。使用上述解决方案按预期渲染的.Rmd文件中的图像

![](/./about_files/Monika_headshot.png){width=250px}

它应该使用大括号:

![](/./about_files/Monika_headshot.png){width=250px}

最新更新