Add new-in tag to images.Padding

This commit is contained in:
Joe Mooring 2023-10-30 09:04:36 -07:00 committed by GitHub
parent ee24cffb58
commit 28e2388c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,8 @@ You can load a custom font if needed. Load the font as a Hugo `Resource` and set
## Padding
{{< new-in "0.120.0" >}}
Padding creates a filter that resizes the image canvas without resizing the image. The last argument is the canvas color, expressed as an RGB or RGBA [hexadecimal color]. The default value is `ffffffff` (opaque white). The preceding arguments are the padding values, in pixels, using the CSS [shorthand property] syntax. Negative padding values will crop the image.
[hexadecimal color]: https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color