网站不更新 blogdown &雨果 [英] Website not updating with blogdown & hugo
问题描述
我知道由于导致错误的代码的可重复性不足,这个问题可能会被否决,但我对错误感到目瞪口呆,我什至不知道从哪里开始解释得足够清楚.因此,我提前道歉.
I know this question is likely to get down-voted due to insufficient reproducibility of code leading to the error, but I am so dumbfounded by the error I do not even know where to start in explaining it clearly enough. I therefore apologise in advance.
此问题已在两台不同的机器上发生两次.我使用 Hugo-academic 主题在 R-Studio 中创建了一个带有 blogdown 的新网站
This issue has occurred twice on two separate machines. I created a new site with blogdown in R-Studio using the hugo-academic theme
new_site(theme = "gcushen/hugo-academic")
一切正常,我开始添加一些出版物(作为 Markdown 文档),将它们添加到/content/publication 文件夹中.这很好用;该网站通过 serve_site()
和 build_site()
看起来都很好(通过我的 GitHub 存储库链接更新了我的 Netlify 页面就好了(https://jimgrange.netlify.com/)
Everything works fine, and I start adding some publications (as markdown documents) by adding these to the /content/publication folder. This works just fine; the site looks fine via both serve_site()
and build_site()
(which linked via my GitHub repo updates my Netlify page just fine (https://jimgrange.netlify.com/)
但是,这一切都可以,直到我的文件夹中达到大约 6-9 个出版物为止.然后,在两个不同的场合,站点停止更新.无论我的代码有什么变化,serve_site()
和 build_site()
都会返回相同的(未更改的)站点.
However, this is all OK until I reach about 6-9 publications in my folder. Then, on two separate occasions, the site stops updating. No matter what I change in my code, serve_site()
and build_site()
return the same (unchanged) site.
为了尝试解决这个问题,我将 GitHub 存储库克隆到另一台机器上并从那里为网站提供服务,但同样的事情发生了.即使我更新了网站文件夹中的降价文件,当我运行 serve_site()
和 build_site()
时,没有任何更新.例如,如果我更改 config.toml 文件的您的详细信息"部分(此处的第 42 行:https://github.com/JimGrange/website/blob/master/config.toml) 没有任何变化.
To try and solve this, I cloned the GitHub repository onto a different machine and served the website from there, but the same thing happened. Even though I have updated the markdown files in the website folders, nothing updates when I run serve_site()
and build_site()
. For example, if I change the "Your details" section of the config.toml file (line 42 here: https://github.com/JimGrange/website/blob/master/config.toml) nothing changes.
我的网站代码在我的 GitHub 存储库中:https://github.com/JimGrange/website
My website code is on my GitHub repo here:https://github.com/JimGrange/website
再次,我为这个问题形式不佳而道歉,但我不知道如何找到解决方案.
Again, I apologise for the poorly-formed question, but I am not sure how to approach a solution.
最好的祝福,吉姆.
推荐答案
我遇到了完全相同的问题.基于 gchushen 的建议 (https://github.com/gcushen/hugo-academic/issues/517) 我安装了 Hugo 并在站点文件夹中运行了 hugo -v
.我在发布降价文件中有一个错字,导致网站无法构建,但 R 没有抛出错误.如果你运行 hugo -v
它应该告诉你你的发布文件夹中的哪个降价文件给出了错误.
I had exactly the same issue. Based on gchushen's suggestion (https://github.com/gcushen/hugo-academic/issues/517) I installed Hugo and ran hugo -v
in the site folder. I had a typo in a publication markdown file that kept the website from building but R wasn't throwing an error. If you run hugo -v
it should tell you which markdown file in your publications folder is giving the error.
这篇关于网站不更新 blogdown &雨果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!