Add support to gallery helper for defining column layout
e.g. `{% include gallery id="gallery" layout="half" caption="2 column gallery caption" %} Fixes #1821
This commit is contained in:
@@ -131,4 +131,12 @@ And place it like so:
|
||||
|
||||
And for giggles one more gallery just to make sure this works. To fill page content container add `class="full"`.
|
||||
|
||||
{% include gallery id="gallery3" class="full" caption="This is a third gallery example with two images and fills the entire content container." %}
|
||||
{% include gallery id="gallery3" class="full" caption="This is a third gallery example with two images and fills the entire content container." %}
|
||||
|
||||
Gallery column layout can be overrided by setting a `layout`.
|
||||
|
||||
```liquid
|
||||
{% raw %}{% include gallery id="gallery" layout="half" caption="This is a half gallery layout example." %}{% endraw %}
|
||||
```
|
||||
|
||||
{% include gallery id="gallery" layout="half" caption="This is a half gallery layout example." %}
|
Reference in New Issue
Block a user