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

[BUG] 从LoveIt转FixIt错误 #182

Closed
lentikr opened this issue Aug 26, 2022 · 2 comments
Closed

[BUG] 从LoveIt转FixIt错误 #182

lentikr opened this issue Aug 26, 2022 · 2 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists
Milestone

Comments

@lentikr
Copy link

lentikr commented Aug 26, 2022

Describe the bug 描述你遇到的错误

之前正常使用LoveIt主题,更换FixIt主题后参照主题说明只将theme字段从LoveIt修改为FixIt,随后运行hugo serve时报错。

❯ hugo serve
Start building sites …
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
WARN 2022/08/26 22:16:00 FixIt v0.2.16-RC
Current environment is "development". The "comment system", "CDN" and "fingerprint" will be disabled.

WARN 2022/08/26 22:16:00 FixIt v0.2.16-RC
You are using a development version of FixIt. Please consider using a stable version.
See https://github.com/hugo-fixit/FixIt/releases

ERROR 2022/08/26 22:16:00 render of "home" failed: "/home/zero/hugo_site/themes/FixIt/layouts/_default/baseof.html:17:8": execute of template failed: template: index.html:17:8: executing "index.html" at <partial "head/meta.html" .>: error calling partial: "/home/zero/hugo_site/themes/FixIt/layouts/partials/head/meta.html:26:14": execute of template failed: template: partials/head/meta.html:26:14: executing "partials/head/meta.html" at <.Site.Params.app.themeColor.light>: can't evaluate field light in type string
ERROR 2022/08/26 22:16:00 render of "section" failed: "/home/zero/hugo_site/themes/FixIt/layouts/_default/baseof.html:17:8": execute of template failed: template: _default/section.html:17:8: executing "_default/section.html" at <partial "head/meta.html" .>: error calling partial: "/home/zero/hugo_site/themes/FixIt/layouts/partials/head/meta.html:26:14": execute of template failed: template: partials/head/meta.html:26:14: executing "partials/head/meta.html" at <.Site.Params.app.themeColor.light>: can't evaluate field light in type string
ERROR 2022/08/26 22:16:00 render of "taxonomy" failed: "/home/zero/hugo_site/themes/FixIt/layouts/_default/baseof.html:17:8": execute of template failed: template: taxonomy/terms.html:17:8: executing "taxonomy/terms.html" at <partial "head/meta.html" .>: error calling partial: "/home/zero/hugo_site/themes/FixIt/layouts/partials/head/meta.html:26:14": execute of template failed: template: partials/head/meta.html:26:14: executing "partials/head/meta.html" at <.Site.Params.app.themeColor.light>: can't evaluate field light in type string
ERROR 2022/08/26 22:16:00 render of "term" failed: "/home/zero/hugo_site/themes/FixIt/layouts/_default/baseof.html:17:8": execute of template failed: template: taxonomy/list.html:17:8: executing "taxonomy/list.html" at <partial "head/meta.html" .>: error calling partial: "/home/zero/hugo_site/themes/FixIt/layouts/partials/head/meta.html:26:14": execute of template failed: template: partials/head/meta.html:26:14: executing "partials/head/meta.html" at <.Site.Params.app.themeColor.light>: can't evaluate field light in type string
Error: Error building site: failed to render pages: render of "taxonomy" failed: "/home/zero/hugo_site/themes/FixIt/layouts/_default/baseof.html:17:8": execute of template failed: template: taxonomy/terms.html:17:8: executing "taxonomy/terms.html" at <partial "head/meta.html" .>: error calling partial: "/home/zero/hugo_site/themes/FixIt/layouts/partials/head/meta.html:26:14": execute of template failed: template: partials/head/meta.html:26:14: executing "partials/head/meta.html" at <.Site.Params.app.themeColor.light>: can't evaluate field light in type string
Built in 48 ms

Expected behavior 期待的行为

  • 从LoveIt切换到FixIt时能够无感。
  • 提供上述问题的解决方式

Screenshots 屏幕截图

No response

Build Environment 构建环境

  • OS: Arch on WSL2
  • Theme version: commit d051dbd
  • Hugo version: hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio

Preview Environment 预览环境

No response

Additional Information 补充信息

config.txt
这是我的配置文件(删除了部分个人信息)

@lentikr lentikr added the bug Something isn't working label Aug 26, 2022
@Lruihao
Copy link
Member

Lruihao commented Aug 26, 2022

@lentikr#174

@Lruihao Lruihao added duplicate This issue or pull request already exists bug Something isn't working and removed bug Something isn't working labels Aug 26, 2022
Lruihao added a commit that referenced this issue Aug 26, 2022
…color]`

🐛 Fix: support smooth migration from LoveIt to FixIt (#174 #182)
@Lruihao
Copy link
Member

Lruihao commented Aug 26, 2022

已支持从 LoveIt 平滑迁入 FixIt 不报错(FixIt>=0.2.16

@Lruihao Lruihao closed this as completed Aug 26, 2022
@Lruihao Lruihao added this to the v0.2.16 milestone Aug 26, 2022
@Lruihao Lruihao self-assigned this Aug 26, 2022
@Lruihao Lruihao moved this to Done in Roadmap of FixIt Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
Archived in project
Development

No branches or pull requests

2 participants