Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo --baseURL 编译错误 #196

Closed
Lruihao opened this issue Sep 12, 2022 · 2 comments
Closed

hugo --baseURL 编译错误 #196

Lruihao opened this issue Sep 12, 2022 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Lruihao
Copy link
Member

Lruihao commented Sep 12, 2022

❯ hugo --minify --baseURL https://xueweiwujxw.github.io/xww_blog
Start building sites … 
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
WARN 2022/09/12 15:22:01 FixIt v0.2.16-RC
您正在使用开发版的 FixIt,请考虑使用稳定版。
见 https://github.com/hugo-fixit/FixIt/releases

ERROR 2022/09/12 15:22:02 render of "term" failed: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/_default/baseof.html:36:8": execute of template failed: template: taxonomy/list.html:36:8: executing "taxonomy/list.html" at <partial "assets.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/assets.html:279:6": execute of template failed: template: partials/assets.html:279:6: executing "partials/assets.html" at <partial "plugin/script.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/plugin/script.html:15:36": execute of template failed: template: partials/plugin/script.html:15:36: executing "partials/plugin/script.html" at <minify>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource
ERROR 2022/09/12 15:22:02 render of "page" failed: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/_default/baseof.html:36:8": execute of template failed: template: posts/single.html:36:8: executing "posts/single.html" at <partial "assets.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/assets.html:279:6": execute of template failed: template: partials/assets.html:279:6: executing "partials/assets.html" at <partial "plugin/script.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/plugin/script.html:15:36": execute of template failed: template: partials/plugin/script.html:15:36: executing "partials/plugin/script.html" at <minify>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource
ERROR 2022/09/12 15:22:02 render of "term" failed: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/_default/baseof.html:36:8": execute of template failed: template: taxonomy/list.html:36:8: executing "taxonomy/list.html" at <partial "assets.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/assets.html:279:6": execute of template failed: template: partials/assets.html:279:6: executing "partials/assets.html" at <partial "plugin/script.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/plugin/script.html:15:36": execute of template failed: template: partials/plugin/script.html:15:36: executing "partials/plugin/script.html" at <minify>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource
ERROR 2022/09/12 15:22:02 render of "term" failed: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/_default/baseof.html:36:8": execute of template failed: template: taxonomy/list.html:36:8: executing "taxonomy/list.html" at <partial "assets.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/assets.html:279:6": execute of template failed: template: partials/assets.html:279:6: executing "partials/assets.html" at <partial "plugin/script.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/plugin/script.html:15:36": execute of template failed: template: partials/plugin/script.html:15:36: executing "partials/plugin/script.html" at <minify>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource
Error: Error building site: failed to render pages: render of "page" failed: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/_default/baseof.html:36:8": execute of template failed: template: friends/single.html:36:8: executing "friends/single.html" at <partial "assets.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/assets.html:279:6": execute of template failed: template: partials/assets.html:279:6: executing "partials/assets.html" at <partial "plugin/script.html" .>: error calling partial: "/home/wlanxww/Projects/personal/xww_blog/themes/FixIt/layouts/partials/plugin/script.html:15:36": execute of template failed: template: partials/plugin/script.html:15:36: executing "partials/plugin/script.html" at <minify>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource
Total in 136 ms

❯ hugo --minify --baseURL https://xueweiwujxw.github.io/        
Start building sites … 
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
WARN 2022/09/12 15:22:05 FixIt v0.2.16-RC
您正在使用开发版的 FixIt,请考虑使用稳定版。
见 https://github.com/hugo-fixit/FixIt/releases

WARNING: calling IsSet with unsupported type "invalid" (<nil>) will always return false.

                   | ZH-CN | EN  
-------------------+-------+-----
  Pages            |    28 | 22  
  Paginator pages  |     0 |  0  
  Non-page files   |     1 |  1  
  Static files     |    77 | 77  
  Processed images |     0 |  0  
  Aliases          |     8 |  7  
  Sitemaps         |     2 |  1  
  Cleaned          |     0 |  0  

Total in 198 ms

Originally posted by @xueweiwujxw in #195 (reply in thread)


已知编译问题:

  • baseURL 不含协议头
  • baseURL 含 pathname
@Lruihao Lruihao added the bug Something isn't working label Sep 12, 2022
@Lruihao Lruihao added this to the v0.2.16 milestone Sep 12, 2022
@Lruihao
Copy link
Member Author

Lruihao commented Sep 12, 2022

经排查,该问题自 #189 后出现

@Lruihao
Copy link
Member Author

Lruihao commented Sep 12, 2022

已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant