Skip to content

Commit

Permalink
Add new-in tag to images.Padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Oct 30, 2023
1 parent ee24cff commit 28e2388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/en/functions/images/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28e2388

Please sign in to comment.