gethinode / hinode

A clean documentation and blog theme for your Hugo site based on Bootstrap 5
https://gethinode.com
MIT License
146 stars 51 forks source link

Module Hinode incompatible with Hugo version #614

Closed giomf closed 12 months ago

giomf commented 12 months ago

Describe the bug So I upgraded hinode to v0.21.0 and wanted to give it a try but this warning appears followed by a lot of errors. Where can I see which hugo version is supported?

To reproduce Steps to reproduce the behavior:

  1. Update from v0.20.7 to v0.21.0
  2. try to build the page with hugo
  3. See error

Expected behavior The page should build normally like with the older version

Log file

WARN  Module "github.com/gethinode/hinode" is not compatible with this Hugo version; run "hugo mod graph" for more information.
ERROR render of "page" failed: "/home/guif/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/gethinode/hinode@v0.21.0/layouts/_default/baseof.html:58:12": execute of template failed: template: _default/single.html:58:12: executing "_default/single.html" at <partial "footer/scripts.html" (dict "filename" "js/critical.bundle.js" "match" "js/critical/**.js" "header" true "page" .)>: error calling partial: "/home/guif/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/gethinode/hinode@v0.21.0/layouts/partials/footer/scripts.html:28:16": execute of template failed: template: partials/footer/scripts.html:28:16: executing "partials/footer/scripts.html" at <hugo>: can't evaluate field IsServer in type interface {}
hugo mod graph
WARN  Module "github.com/gethinode/hinode" is not compatible with this Hugo version; run "hugo mod graph" for more information.
github.com/gethinode/template github.com/gethinode/hinode@v0.21.0
github.com/gethinode/hinode@v0.21.0 github.com/gethinode/mod-bootstrap@v1.2.2
github.com/gethinode/mod-bootstrap@v1.2.2 github.com/twbs/bootstrap@v5.3.2+incompatible
github.com/gethinode/hinode@v0.21.0 github.com/gethinode/mod-flexsearch@v1.6.0
github.com/gethinode/mod-flexsearch@v1.6.0 github.com/nextapps-de/flexsearch@v0.0.0-20230711092928-1243fd883ec3
github.com/gethinode/hinode@v0.21.0 github.com/gethinode/mod-fontawesome@v1.5.0
github.com/gethinode/hinode@v0.21.0 github.com/gethinode/mod-katex@v1.0.4
github.com/gethinode/hinode@v0.21.0 github.com/gethinode/mod-leaflet@v0.3.5
github.com/gethinode/hinode@v0.21.0 github.com/gethinode/mod-lottie@v1.3.0
github.com/gethinode/mod-lottie@v1.3.0 github.com/airbnb/lottie-web@v5.12.2+incompatible

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

giomf commented 12 months ago

Ok after upgrading to the latest hugo version it works as expected. However it would be great to have minimal supported version for hugo in the docs.

markdumay commented 12 months ago

I'll add an explicit reference to the minimum required version in the release notes & announcement. This version of Hinode uses several updated Hugo settings that replace now deprecated parameters. The reason you're seeing this warning is because of the following configuration in hugo.toml.

[module]
  [module.hugoVersion]
    extended = true
    min = "0.120.0"
    max = ""