Add gallery param process

This commit is contained in:
Will Faught
2023-04-08 21:06:50 -07:00
parent e5351c6268
commit 17abad4523
3 changed files with 9 additions and 21 deletions

View File

@@ -197,17 +197,17 @@ Result:
{{< paige/gallery images="*-2.jpg" maxwidth="20rem" />}}
## Method and options parameters
## Process parameter
Code:
```go-text-template
{{</* paige/gallery images="*-2.jpg" method="fill" options="550x550 r90 webp picture Lanczos" /*/>}}
{{</* paige/gallery images="*-2.jpg" process="300x300 center crop lanczos picture r90 webp" /*/>}}
```
Result:
{{< paige/gallery images="*-2.jpg" method="fill" options="550x550 r90 webp picture Lanczos" />}}
{{< paige/gallery images="*-2.jpg" process="300x300 center crop lanczos picture r90 webp" />}}
## Type