mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
Add new-in tag to images.Padding
This commit is contained in:
1 parent
ee24cffb58
commit
28e2388c2f
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user