ggplot() 图形输出 link 损坏 ./static/post/

ggplot() graphical output link broken ./static/post/

我已经按照 https://bookdown.org/yihui/blogdown/static-files.html 的建议添加了一个带有 blogdown::build_dir('static') 的 .r 文件 - 并创建了一个 ./static/post 目录 - 什么我是不是不见了?

我还搜索了 rbind.io blogdown 结构,但无法弄清楚如何将渲染的图形输出连接到 static/post/post-date;不是如何自动将输出重定向到该文件夹​​而不是 public.

感谢您的帮助。

我觉得我found the problem

静态目录中的 .gitignore 文件阻止 git 暂存由 blogdown 生成的图像,删除它。