我遵循了博客的指示,使用标记获得一个GitHub静态博客。然而,一个特定的主题是玩的不太好。以下MWE生成了一个非主题的博客:
blogdown::new_site()
file.create(".nojekyll")
blogdown::install_theme("lambdafu/hugo-finite")然后编辑config.toml文件以反映我的github.io域。
最后,:
blogdown::build_site()
cd public
git init
git remote add origin https://github.com/lf-araujo/lf-araujo.github.io不幸的是,这些步骤导致创建了一个非主题网站,请参阅这里。我怀疑这与定制主题有关。
P.S.:blogdown::serve_site()生成正确的主题预览。
发布于 2018-05-19 02:59:05
从您的HTML文件(例如index.html)判断,您在config.toml中配置了您的baseURL。它应该是https://lf-araujo.github.io/而不是http://github.com/lf-araujo.github.io。baseURL选项在“第2.2节 of blogdown”一书中有记录。
https://stackoverflow.com/questions/50414389
复制相似问题