gpt4 book ai didi

r - 在 r-bloggers 上获取 hugo-goa 的 blogdown

转载 作者:行者123 更新时间:2023-12-04 15:09:39 25 4
gpt4 key购买 nike

我尝试将以下博客风格 blogdown::new_site(theme = "shenoybr/hugo-goa") 带给 r-bloggers。

正在关注 How do I get my blogdown blog on R-Bloggers?似乎已经过时了。

一个新的解决方案出现了:https://stackoverflow.com/a/63499033/8538074 ,我试图遵循这一点。

dir.create("blog18")
setwd("blog18")
blogdown::new_site(theme = "shenoybr/hugo-goa")

然后按照上面链接的答案:

dir.create(path = "layouts/tags")
xx = readLines("https://raw.githubusercontent.com/liao961120/Hugo-RSS/master/layouts/categories/rss.xml")
writeLines(text = xx, con = "layouts/tags/rss.xml")
blogdown::build_site()

推送到github:

go to github and create repo
{GITHUBUSERNAME}.github.io

对我来说是 TyGu1.github.io

将所有文件拖放到github上传

检查网站:

转到https://tygu1.github.io/--> 网站已启动

https://www.r-bloggers.com/add-your-blog/ 中的建议去

paste0("https://simplepie.org/demo/?feed=", URLencode("https://tygu1.github.io/", reserved = TRUE))
"https://simplepie.org/demo/?feed=https%3A%2F%2Ftygu1.github.io%2F"

RSS 提要不起作用。

问题:

我必须更改哪些步骤才能使 rss 提要有效(使用 shenoybr/hugo-goa 样式)

编辑:

如问题中所问/所建议:Github 页面似乎已经激活:(在其他存储库中,我看到“GitHub Pages 当前已禁用。”,因此我假设它在当前存储库中已激活,请参见下图)。

enter image description here

最佳答案

您的网站地址是正确的,但是您的博客地址是https://tygu1.github.io/blog .

XML 提要位于 https://tygu1.github.io/blog/index.xml .如果您将其粘贴到 simplepie.org,它会起作用:https://simplepie.org/demo/?feed=https%3A%2F%2Ftygu1.github.io%2Fblog%2Findex.xml .

所以问题是缺少/blog

关于r - 在 r-bloggers 上获取 hugo-goa 的 blogdown,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65447256/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com