mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
Merge commit '7eb0e10a80708c638554b8221a3120dc1168566c'
This commit is contained in:
@@ -10,7 +10,7 @@ categories: ["Releases"]
|
||||
|
||||
## Deep merge of theme Params
|
||||
|
||||
One of the most common complaint from Hugo theme owners/users has been about the configuration handling. Hugo has up until now only performed a shallow merge of theme `params` into the configuration.
|
||||
One of the most common complaints from Hugo theme owners/users has been about the configuration handling. Hugo has up until now only performed a shallow merge of theme `params` into the configuration.
|
||||
|
||||
With that, given this example from a theme configuration:
|
||||
|
||||
@@ -22,7 +22,7 @@ green="#68FF33"
|
||||
red="#FF3358"
|
||||
```
|
||||
|
||||
If you would like to use the above theme, but want a different shade of red, you earlier had to copy the entire block, even the colours you're totally happy with. This was painful even the simplest setup.
|
||||
If you would like to use the above theme, but want a different shade of red, you earlier had to copy the entire block, even the colours you're totally happy with. This was painful with even the simplest setup.
|
||||
|
||||
Now you can just override the `params` keys you want to change, e.g.:
|
||||
|
||||
@@ -56,7 +56,7 @@ We have updated the internal Instagram shortcode to pass the access token in a h
|
||||
|
||||
## New erroridf template func
|
||||
|
||||
Sometime, especially when creating themes, it is useful to be able to let the user decide if an error situation is critical enough to fail the build. The new `erroridf` produces `ERROR` log statements that can be toggled off:
|
||||
Sometimes, especially when creating themes, it is useful to be able to let the user decide if an error situation is critical enough to fail the build. The new `erroridf` produces `ERROR` log statements that can be toggled off:
|
||||
|
||||
```html
|
||||
{{ erroridf "some-custom-id" "Some error message." }}
|
||||
|
@@ -11,7 +11,7 @@ images:
|
||||
|
||||
|
||||
|
||||
This is a bug-fix release with a couple of important fixes.
|
||||
This is mostly a bug fix release, but it also contains some minor modules related improvements. Most notable you now get some more information in ` hugo config mounts`, and even more so when typing ` hugo config mounts -v`.
|
||||
|
||||
* modules: Add module.import.noMounts config [40dfdd09](https://github.com/gohugoio/hugo/commit/40dfdd09521bcb8f56150e6791d60445198f27ab) [@bep](https://github.com/bep) [#8708](https://github.com/gohugoio/hugo/issues/8708)
|
||||
* modules: Use value type for module.Time [3a6dc6d3](https://github.com/gohugoio/hugo/commit/3a6dc6d3f423c4acb79ef21b5a76e616fa2c9477) [@bep](https://github.com/bep)
|
||||
|
Reference in New Issue
Block a user