Update README with more v5 info.

This commit is contained in:
Fredrik Jonsson 2025-04-13 10:21:49 +02:00
commit a605f62f0e

View file

@ -50,8 +50,8 @@ Quickstart a new site with the Zen theme by using the [Zen demo repo as a templa
## Version 5.x ## Version 5.x
* Minimum Hugo version is now v0.146.0. * Minimum Hugo version is now v0.146.0. This plus the rearanged variables are the reasons for making this v5.
* Rearanged a lot of variables so some work to upgrade if you have customisations. This is the reson for making this v5. I'm working towards using vanilla css only. * Rearanged a lot of variables. This will require some work to upgrade if you have customisations. I'm working towards using vanilla css only.
* Colours are now set directly as css variables. You no longer need to override `_colors.scss`, instead override select colours in `_custom.scss`. This simplification was the main motivation for v5. * Colours are now set directly as css variables. You no longer need to override `_colors.scss`, instead override select colours in `_custom.scss`. This simplification was the main motivation for v5.
* Converted most sass settings in to pure css variables. * Converted most sass settings in to pure css variables.
* Split sass and css settings it to separate files. * Split sass and css settings it to separate files.
@ -61,9 +61,10 @@ Quickstart a new site with the Zen theme by using the [Zen demo repo as a templa
### Upgrade to 5.x ### Upgrade to 5.x
1. Remove your projects `_colors.scss`, take note of the colours you have changed. 1. Make sure you are using Hugo v0.146.0 or later both in development and for deployment.
2. Override colours and other css variables in projects `_custom.scss`. 2. Remove your projects `_colors.scss`, take note of the colours you have changed.
3. Update/remove/convert to css vars the variables you overridden in projects `_extra.scss` so they match changes in themes `_variables.scss` and `_sass_variables.scss`. 3. Override colours and other css variables in projects `_custom.scss`.
4. Update/remove/convert variables you overridden in projects `_extra.scss` so they match changes in themes `_variables.scss` and `_sass_variables.scss`.
## Version 4.x ## Version 4.x