From 28e2388c2fe0f840cd8ddd789b7ec5e37354e955 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 30 Oct 2023 09:04:36 -0700 Subject: [PATCH] Add new-in tag to images.Padding --- content/en/functions/images/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/functions/images/index.md b/content/en/functions/images/index.md index 3b71652cf..07b39f982 100644 --- a/content/en/functions/images/index.md +++ b/content/en/functions/images/index.md @@ -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