新的问题
虽然解决了文件栏里存在文件缺失的问题,但在建站时遇到了很多报错信息。
运行blogdown:::serve_site()
时显示:
Launching the server via the command:
C:/Users/Sonde/AppData/Roaming/Hugo/0.112.2/hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-lithium -D -F --navigateToChanged
Error: error building site: render: failed to render pages: render of "taxonomy" failed: "D:\02_work\values\myblog\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: "D:\02_work\values\myblog\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
我在论坛里其他跟serve_site相关的求助帖子里看到可以使用blogdown::build_site()
查看问题,运行之后发现很多报错。
blogdown::build_site()
Start building sites …
hugo v0.112.2-f89108f2b1b299421cb830777994d6e61dc10755+extended windows/amd64 BuildDate=2023-05-24T10:45:31Z VendorInfo=gohugoio
ERROR 2023/05/25 15:37:17 render of "page" failed: "D:\02_work\values\myblog\themes\hugo-lithium\layouts\_default\single.html:25:3": execute of template failed: template: default/single.html:25:3: executing "default/single.html" at <partial "footer.html" .>: error calling partial: "D:\02_work\values\myblog\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
ERROR 2023/05/25 15:37:17 render of "section" failed: "D:\02_work\values\myblog\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: "D:\02_work\values\myblog\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
ERROR 2023/05/25 15:37:17 render of "taxonomy" failed: "D:\02_work\values\myblog\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: "D:\02_work\values\myblog\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
ERROR 2023/05/25 15:37:17 render of "home" failed: "D:\02_work\values\myblog\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: "D:\02_work\values\myblog\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
Total in 44 ms
Error: error building site: render: failed to render pages: render of "taxonomy" failed: "D:\02_work\values\myblog\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: "D:\02_work\values\myblog\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
系统信息
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)China.utf8
[2] LC_CTYPE=Chinese (Simplified)China.utf8
[3] LC_MONETARY=Chinese (Simplified)China.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)China.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] blogdown_1.17.2
loaded via a namespace (and not attached):
[1] Rcpp_1.0.10 ps_1.7.3 later_1.3.1 digest_0.6.31
[5] R6_2.5.1 jsonlite_1.8.4 magrittr_2.0.3 evaluate_0.21
[9] rlang_1.1.1 cli_3.6.1 promises_1.2.0.1 rstudioapi_0.14
[13] rmarkdown_2.21 tools_4.2.3 servr_0.27 processx_3.8.0
[17] httpuv_1.6.11 xfun_0.39 yaml_2.3.7 rsconnect_0.8.29
[21] fastmap_1.1.1 compiler_4.2.3 htmltools_0.5.5 knitr_1.42
麻烦大家不吝赐教,万分感谢!