复现问题的步骤和运行环境如下
复现问题
第一步
跟随 RStudio 的指导,创建一个 blogdown 项目,一切步骤按照默认的来。
第二步
执行如下命令,渲染网站
blogdown:::serve_site()
发现如下报错,网站无法渲染
Launching the server via the command:
hugo server --bind 127.0.0.1 -p 6310 --themesDir themes -t hugo-lithium -D -F --navigateToChanged
Error: error building site: render: failed to render pages: render of "taxonomy" failed: "/Users/xiangyun/Documents/hugo-test/themes/hugo-lithium/layouts/_default/list.html:35:3": execute of template failed: template: _default/list.html:35:3: executing "_default/list.html" at <partial "footer.html" .>: error calling partial: "/Users/xiangyun/Documents/hugo-test/themes/hugo-lithium/layouts/partials/footer.html:4:29": execute of template failed: template: partials/footer.html:4:29: executing "partials/footer.html" at <.Site.RSSLink>: can't evaluate field RSSLink in type page.Site
软件环境
> xfun::session_info(packages = c('blogdown','knitr','rmarkdown'), dependencies = F)
R version 4.3.0 (2023-04-21)
Platform: x86_64-apple-darwin22.4.0 (64-bit)
Running under: macOS Ventura 13.3.1, RStudio 2023.3.1.446
Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
time zone: Asia/Shanghai
tzcode source: internal
Package version:
blogdown_1.17 knitr_1.43 rmarkdown_2.21
Hugo version: 0.112.5
Pandoc version: 2.19.2