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 compile error #14

Open
gkfnf opened this issue Dec 16, 2018 · 4 comments
Open

Hugo compile error #14

gkfnf opened this issue Dec 16, 2018 · 4 comments

Comments

@gkfnf
Copy link

gkfnf commented Dec 16, 2018

hugo 版本: hugo_extend 0.51。
编译的时候报错了。
list.html 里边的 {{ $paginator := .Paginate (.Data.Pages.groupByDate "2006-01") }} 这一行类型不匹配
错误码是:can't evaluate field groupByDate in type interface {}
我查了下文档我感觉你这个写法就没毛病的,当我把 .Data.Pages.groupByDate 里边的 Pages 改成 pages 可以编译得过去,但是获取不到值。 大兄弟,这个怎么解决啊?

@gkfnf
Copy link
Author

gkfnf commented Dec 16, 2018

问题解决了, groupByDate 这里我写错了, g 要大写。。。。

@gkfnf
Copy link
Author

gkfnf commented Dec 16, 2018

又不行了。。。 这个类型确实不匹配的样子

@wimilee
Copy link

wimilee commented Apr 19, 2020

@gkfnf 你解决了吗

@wimilee
Copy link

wimilee commented Apr 19, 2020

貌似我改成page就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants