diff options
author | Arthur Bailão <arthurbailao@gmail.com> | 2020-08-24 02:21:36 +0300 |
---|---|---|
committer | Arthur Bailão <arthurbailao@gmail.com> | 2020-08-24 02:21:36 +0300 |
commit | 998e76c4568c93f7fbdb47ecc1fba015260e91ab (patch) | |
tree | 2a8faa2800156889d2fb155c254345babb9d79a7 /README.md | |
parent | 714704c4fce54e53a450b10672314c2df245a728 (diff) |
adding keepAspectRatio option
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -137,6 +137,7 @@ To automagically generate a gallery from the images, set `type: "gallery"` in th - The page link with `url`
- The `maxWidth` of the resized images
- Whether you want the images to link to the full size files, with `clickablePhotos`
+- You can keep the orignal aspect ratio of the images in the grid with `keepAspectRatio`
Here is an example of a gallery's `_index.md`:
@@ -147,6 +148,7 @@ type: "gallery" url: "/portrait-gallery"
maxWidth: "800x"
clickablePhotos: true
+keepAspectRatio: false
---
```
|