hugo-pacman-theme icon indicating copy to clipboard operation
hugo-pacman-theme copied to clipboard

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

Open dorlolo opened this issue 3 years ago • 0 comments

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 ?

dorlolo avatar Nov 18 '22 18:11 dorlolo