Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Bailão <arthurbailao@gmail.com>2020-08-24 02:21:36 +0300
committerArthur Bailão <arthurbailao@gmail.com>2020-08-24 02:21:36 +0300
commit998e76c4568c93f7fbdb47ecc1fba015260e91ab (patch)
tree2a8faa2800156889d2fb155c254345babb9d79a7 /README.md
parent714704c4fce54e53a450b10672314c2df245a728 (diff)
adding keepAspectRatio option
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index f6415a6..31b94cd 100755
--- a/README.md
+++ b/README.md
@@ -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
---
```