theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.1k stars 1.13k forks source link

Bump minVersion from 0.64.0 to 0.84.0 #541

Closed regisphilibert closed 2 years ago

regisphilibert commented 2 years ago

Bumping minimum version is not a light decision, especially of such a big leap.

But as we want to keep the theme supporting older versions, we need to be able to secure new features behind version conditionals.

While we can test hugo version with {{ if ge hugo.Version "0.70.0" }} since 0.63.0, testing if user is using Hugo extended which allows sass and webp image processing is only possible since 0.83.0 with hugo.IsExtended. (see #452)

Also 0.84.0 allows to id error messages which is very useful for themes.

I feel with a min version of 84 we'll be more confortable using Hugo's latest features while maintaining cross compatibility of the theme users.