Closed phenix3443 closed 5 months ago
链接所对应的日志和截图对不上,就链接对应的日志来讲,安装依赖那一步错了,但并没有返回错误代码并报错。
Hugo v0.123.* 以后的版本会出现这个问题,我不确定是这不是 Bug,我在官方论坛问了,https://discourse.gohugo.io/t/ref-not-working-when-using-relative-path-since-v0-123-0/48939 。
你可以降低 Hugo 的版本(v0.122.* 或以下)以正常部署,等官方回复再确定是否需要修改。
官方回复说0.123.0
之后的逻辑路径改了,详情参阅 https://gohugo.io/methods/page/path/#logical-tree 。
好的,问题已经解决了,感谢解答
官方回复说
0.123.0
之后的逻辑路径改了,详情参阅 https://gohugo.io/methods/page/path/#logical-tree 。 那当前有跟随 hugo 0.123 版本做更改么?
那当前有跟随 hugo 0.123 版本做更改么?
若你是指主题的话,这个问题和主题无关(ref
和 relref
是 Hugo 内置的短代码),而且我一般使用的是绝对路径,所以主题应该没什么影响和需要改动的。而你则需要改动 ref
/relref
的路径,因为现在其改为逻辑路径,和文件路径不等同。
我修复了ref 应用的问题,但是现在遇到附件build.log中的错误,可以帮忙看下是什么原因吗?
ERROR render of "page" failed: "/Users/liushangliang/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/razonyang/hugo-theme-bootstrap@v1.2.2/layouts/_default/baseof.html:11:38": execute of template failed: template: posts/single.html:11:38: executing "title$htmltemplate_stateRCDATA_elementTitle" at <partial "head/title" .>: error calling partial: "/Users/liushangliang/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/razonyang/hugo-theme-bootstrap@v1.2.2/layouts/partials/head/title.html:21:19": execute of template failed: template: partials/head/title.html:21:19: executing "partials/head/title.html" at <.Paginate>: error calling Paginate: pagination not supported for this page: kind: "page", path: "/posts/access-computer-in-home", file: "/Users/liushangliang/github/phenix3443/blog/content/posts/access-computer-in-home/index.md"
我个人博客的仓库是 https://github.com/phenix3443/blog, main branch hugo version hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended darwin/arm64 BuildDate=2024-03-20T11:40:10Z VendorInfo=brew
pagination not supported for this page: kind: "page"
这个已于 v1.5.4 中修复,升级到主题的最新版本应该可以解决,https://github.com/razonyang/hugo-theme-bootstrap/releases 。
Prerequisites
Describe the issue
今天使用hugo server -D 启动的时候突然出现找不到文章引用的情况
Steps to reproduce
https://github.com/phenix3443/blog/actions/runs/8353853479/job/22866241342
Expected behavior
应该可以正常编译出网页产物
What operating system(s) are you seeing the problem on?
macOS, Linux
What browser(s) are you seeing the problem on?
Chrome
What version of theme are you using?
master
What version of Hugo are you using?
hugo v0.117.0-b2f0696cad918fb61420a6aff173eb36662b406e+extended
What version of Node.js are you using?
No response
What version of Git are you using?
No response
Additional context
No response