jpanther / lynx

A simple links theme for Hugo built with Tailwind CSS.
https://jpanther.github.io/lynx/
MIT License
349 stars 117 forks source link

Doesn't build on newset hugomods/hugo image #73

Closed ekamil closed 1 year ago

ekamil commented 1 year ago

What happened?

I tried updating from hugomods/hugo:exts-0.111.3 to hugomods/hugo:exts-0.112.4 and got this error:

server-1  | Error: error building site: render: failed to render pages: render of "home" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/lynx@v1.2.4/layouts/_default/baseof.html:3:6": execute of template failed: template: index.html:3:6: executing "index.html" at <partial "head.html" .>: error calling partial: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/lynx@v1.2.4/layouts/partials/head.html:87:5": execute of template failed: template: partials/head.html:87:5: executing "partials/head.html" at <partialCached "analytics.html" .Site>: error calling partialCached: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/lynx@v1.2.4/layouts/partials/analytics.html:1:15": execute of template failed: template: partials/analytics.html:1:15: executing "partials/analytics.html" at <.Site.IsServer>: can't evaluate field Site in type *page.siteWrapper

Downgrading to 0.111.3 helps.

Theme version

v1.2.4

Hugo version

0.112.4

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant Hugo log output

Error: error building site: render: failed to render pages: render of "home" failed: "/var/folders/mv/q74h0d1x6bn73ksdktclhl5c0000gn/T/com.apple.shortcuts.mac-helper/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/lynx@v1.2.4/layouts/_default/baseof.html:3:6": execute of template failed: template: index.html:3:6: executing "index.html" at <partial "head.html" .>: error calling partial: "/var/folders/mv/q74h0d1x6bn73ksdktclhl5c0000gn/T/com.apple.shortcuts.mac-helper/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/lynx@v1.2.4/layouts/partials/head.html:87:5": execute of template failed: template: partials/head.html:87:5: executing "partials/head.html" at <partialCached "analytics.html" .Site>: error calling partialCached: "/var/folders/mv/q74h0d1x6bn73ksdktclhl5c0000gn/T/com.apple.shortcuts.mac-helper/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/lynx@v1.2.4/layouts/partials/analytics.html:1:15": execute of template failed: template: partials/analytics.html:1:15: executing "partials/analytics.html" at <.Site.IsServer>: can't evaluate field Site in type *page.siteWrapper
Hate9 commented 1 year ago

Can confiirm, I am also having this issue. Jpanther appears to be aware of this issue, as they have posted an issue about this on another of their themes (congo).

jpanther commented 1 year ago

Thanks for the report. This will be fixed in the next theme release.