hugo/resources
Bjørn Erik Pedersen 3ba147e702 images: Add images.Overlay filter
This allows for constructs ala:

```
{{ $overlay := $img.Filter (images.Overlay $logo 50 50 )}}
```
Or:

```
{{ $logoFilter := (images.Overlay $logo 50 50 ) }}
{{ $overlay := $img | images.Filter $logoFilter }}
```

Which will overlay the logo in the top left corner (x=50, y=50) of `$img`.

Fixes #8057
Fixes #4595
Updates #6731
2020-12-17 09:14:18 +01:00
..
images images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
internal all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
jsconfig all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page tpl: Regenerate templates 2020-12-16 12:20:02 +01:00
postpub all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
resource_factories all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_transformers all: Fix minor typos 2020-12-16 12:11:32 +01:00
testdata images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
image.go images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
image_cache.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
image_test.go images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
resource_cache.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_metadata_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
resource_spec.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
resource_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
testhelpers_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
transform.go images: Add images.Overlay filter 2020-12-17 09:14:18 +01:00
transform_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00