Add maxheight, maxwidth params to image

This commit is contained in:
Will Faught
2023-03-03 21:07:11 -08:00
parent b8259e8e96
commit bd5176c78d
3 changed files with 34 additions and 0 deletions

View File

@@ -47,6 +47,30 @@ Result:
{{< paige/image link="https://github.com/willfaught/paige" src="landscape.webp" >}}
## Maxheight parameter
Code:
```go-text-template
{{</* paige/image maxheight="10rem" src="landscape.webp" */>}}
```
Result:
{{< paige/image maxheight="10rem" src="landscape.webp" >}}
## Maxwidth parameter
Code:
```go-text-template
{{</* paige/image maxwidth="10rem" src="landscape.webp" */>}}
```
Result:
{{< paige/image maxwidth="10rem" src="landscape.webp" >}}
## Method and options parameters
Code: