nix-community / nur-search

NUR package search [maintainer=@Mic92]
https://nur.nix-community.org/
29 stars 6 forks source link

hugo fail #17

Closed nim65s closed 8 months ago

nim65s commented 8 months ago

Hi,

The "gh-pages" branch didn't get any update for a month.

Running a local copy raise:

$ nix-shell --command "hugo server"
[…]
ERROR render of "page" failed: "/…/nur-search/themes/docdock/layouts/_default/baseof.html:22:9": execute of template failed: template: _default/single.html:22:9: executing "_default/single.html" at <partial (printf "%!s(MISSING)/body-aftercontent.html" .Site.Params.themeStyle) .>: error calling partial: "/…/nur-search/layouts/partials/nur/body-aftercontent.html:42:9": execute of template failed: template: partials/nur/body-aftercontent.html:42:9: executing "partials/nur/body-aftercontent.html" at <where .Site.Pages "File.BaseFileName" $footer>: error calling where: runtime error: invalid memory address or nil pointer dereference
ERROR render of "taxonomy" failed: "/…/nur-search/themes/docdock/layouts/_default/baseof.html:22:9": execute of template failed: template: _default/list.html:22:9: executing "_default/list.html" at <partial (printf "%!s(MISSING)/body-aftercontent.html" .Site.Params.themeStyle) .>: error calling partial: "/…/nur-search/layouts/partials/nur/body-aftercontent.html:42:9": execute of template failed: template: partials/nur/body-aftercontent.html:42:9: executing "partials/nur/body-aftercontent.html" at <where .Site.Pages "File.BaseFileName" $footer>: error calling where: runtime error: invalid memory address or nil pointer dereference
ERROR render of "section" failed: "/…/nur-search/themes/docdock/layouts/_default/baseof.html:22:9": execute of template failed: template: _default/list.html:22:9: executing "_default/list.html" at <partial (printf "%!s(MISSING)/body-aftercontent.html" .Site.Params.themeStyle) .>: error calling partial: "/…/nur-search/layouts/partials/nur/body-aftercontent.html:42:9": execute of template failed: template: partials/nur/body-aftercontent.html:42:9: executing "partials/nur/body-aftercontent.html" at <where .Site.Pages "File.BaseFileName" $footer>: error calling where: runtime error: invalid memory address or nil pointer dereference
ERROR render: failed to render pages: render of "404" failed: "/…/nur-search/themes/docdock/layouts/404.html:27:9": execute of template failed: template: 404.html:27:9: executing "404.html" – Pages "File is nil; wrap it in if or with: {{ with partial (printf "%!s(MISSING)/body-aftercontent.html" .Site.Params.themeStyle) .>: error calling partial: "/…/nur-search/layouts/partials/nur/body-aftercontent.html:42:9": execute of template failed: template: partials/nur/body-aftercontent.html:42:9: executing "partials/nur/body-aftercontent.html" at <where .Site.Pages "File }}{{ .where }}{{ end }}
Mic92 commented 8 months ago

Fixed https://github.com/nix-community/nur-search/commit/728c0e3f2b2e40117587c00e9a0f0fac31d8e2f8