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

I got an error when I executed it: can't evaluate field URL in type *hugolib.pageState #33

Open
dorlolo opened this issue Nov 18, 2022 · 0 comments

Comments

@dorlolo
Copy link

dorlolo commented Nov 18, 2022

xjj@xjj:~/Documents/myblog/themes/hugo-pacman-theme/exampleSite$ hugo server --themesDir ../../
Start building sites … 
hugo v0.106.0 linux/amd64 BuildDate=unknown
ERROR 2022/11/19 01:54:26 render of "term" failed: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/_default/list.html:1:3": execute of template failed: template: _default/list.html:1:3: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/partials/head.html:5:18": execute of template failed: template: partials/head.html:5:18: executing "partials/head.html" at <.URL>: can't evaluate field URL in type *hugolib.pageState           
ERROR 2022/11/19 01:54:26 render of "term" failed: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/_default/list.html:1:3": execute of template failed: template: _default/list.html:1:3: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/partials/head.html:5:18": execute of template failed: template: partials/head.html:5:18: executing "partials/head.html" at <.URL>: can't evaluate field URL in type *hugolib.pageState           
ERROR 2022/11/19 01:54:26 render of "term" failed: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/_default/list.html:1:3": execute of template failed: template: _default/list.html:1:3: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/partials/head.html:5:18": execute of template failed: template: partials/head.html:5:18: executing "partials/head.html" at <.URL>: can't evaluate field URL in type *hugolib.pageState           
ERROR 2022/11/19 01:54:26 render of "page" failed: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/_default/single.html:1:3": execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/partials/head.html:5:18": execute of template failed: template: partials/head.html:5:18: executing "partials/head.html" at <.URL>: can't evaluate field URL in type *hugolib.pageState     
Error: Error building site: failed to render pages: render of "page" failed: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/_default/single.html:1:3": execute of template failed: template: _default/single.html:1:3: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home/xjj/Documents/myblog/themes/hugo-pacman-theme/layouts/partials/head.html:5:18": execute of template failed: template: partials/head.html:5:18: executing "partials/head.html" at <.URL>: can't evaluate field URL in type *hugolib.pageState
Built in 49 ms
xjj@xjj:~/Documents/myblog/themes/hugo-pacman-theme/exampleSite$ hugo env
hugo v0.106.0 linux/amd64 BuildDate=unknown
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.18.6"

How can I fix it ?

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

1 participant