【问题标题】:Hugo page build failure on github (not jekyll)github 上的 Hugo 页面构建失败(不是 jekyll)
【发布时间】:2020-07-04 03:04:56
【问题描述】:

我是网络开发的新手,所以请多多包涵。

我在 github 上构建我的博客项目,我不是用户 jekyll,我正在使用“Hugo”并通过“Netlify”部署,这几天,我仍在将我的更改推送到 github,但是一些问题说明:


master 分支的页面构建失败,出现以下错误:

符号链接/content/images 指向您站点的存储库中不存在的文件。如需更多信息,请参阅https://help.github.com/en/github/working-with-github-pages/troubleshooting-jekyll-build-errors-for-github-pages-sites#symlink-does-not-exist-within-your-sites-repository

有关 Jekyll 故障排除的信息,请参阅:

https://help.github.com/articles/troubleshooting-jekyll-builds


我在 GitHub 上的每次提交都会出错,我尝试在根目录中创建一个空 file.nojekyll,但仍然没有好转,我检查了 Hugo 文件,但它托管和部署在 GitHub 上而不是 Netlify ,所以我认为这可能与我的错误无关。

这是我的回购: https://github.com/Luke1760/MyBlog

感谢您之前的回答。

【问题讨论】:

    标签: github netlify hugo


    【解决方案1】:
    The symbolic link /content/images targets a file which does not exist within your site's repository. 
    

    /content/images 指向/Users/joway/Code/frontend/hugo-blog/static/images/,这表明您是 Mac 用户 :)。但是 Netify 不知道从哪里获取图像。如果您在 Mac 上本地构建网站,这工作。

    【讨论】:

    • @LukeDai 你介意接受它作为答案吗(在upvote/downvote 控件旁边打勾)?
    • @badishop ofc,你值得拥有!
    猜你喜欢
    • 1970-01-01
    • 2017-03-03
    • 1970-01-01
    • 1970-01-01
    • 2015-03-12
    • 1970-01-01
    • 1970-01-01
    • 2020-04-09
    • 2018-06-23
    相关资源
    最近更新 更多