aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/images
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-12-07 11:48:48 +0100
committerBjørn Erik Pedersen <[email protected]>2021-12-07 16:53:02 +0100
commite61cdf335f9d102621c37d0d366da61afa698c99 (patch)
treeb54c91382743b4c0bb2a1b76487316140d9c34f5 /resources/images
parent6c3bc5ebad1788c8fcec81e7d46831cf356a94fc (diff)
downloadhugo-e61cdf335f9d102621c37d0d366da61afa698c99.tar.gz
hugo-e61cdf335f9d102621c37d0d366da61afa698c99.zip
images: Fix cache busting of image text filter
See #9238
Diffstat (limited to 'resources/images')
-rw-r--r--resources/images/filters.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/images/filters.go b/resources/images/filters.go
index c933e733b..63caefdd1 100644
--- a/resources/images/filters.go
+++ b/resources/images/filters.go
@@ -46,9 +46,9 @@ func (*Filters) Text(text string, options ...interface{}) gift.Filter {
linespacing: 2,
}
- var opt map[string]interface{}
+ var opt maps.Params
if len(options) > 0 {
- opt := maps.MustToParamsAndPrepare(options[0])
+ opt = maps.MustToParamsAndPrepare(options[0])
for option, v := range opt {
switch option {
case "color":
@@ -62,7 +62,6 @@ func (*Filters) Text(text string, options ...interface{}) gift.Filter {
case "linespacing":
tf.linespacing = cast.ToInt(v)
}
-
}
}