mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 18:04:57 -04:00
Add new-in tag to images.Padding
This commit is contained in:
parent
ee24cffb58
commit
28e2388c2f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user