Boylad 我想把Rbookdown生成的book作为博客的一个超链接。我试着将中文模板下载解压到博客的static文件夹下,解压文件名为:Rbookdown_CHN build之后,在博客上a标签连接了Rbookdown_CHN/_book文件夹路径。 serve site之后,在博客的public文件夹下生成了Rbookdown_CHN/_book。 在本地是可以访问_book文件夹下的index.html的。但是push到github仓库上之后就提示网页不存在,请问有人遇到过同样的问题吗?
tctcab 猜到原因了, jekyll默认忽略带下划线的目录 如果要用github page来部署blogdown/hugo的话记得在根目录创建一个 .nojekyll的文件,告诉github不要咸猪手 参见blogdown文档: To make sure GitHub does not rebuild your website using Jekyll and just publish whatever files you push to the repository, you need to create a (hidden) file named .nojekyll 另外这个主题好漂亮!