Join GitHub today
Adding "Half" and "Full" class for galleries defined via front matter #1821
The galleries defined via front matter always have
Is it possible to show them as single images or set of two column images?
I searched the documentation, and this feature is not available (documentation link page)
Please note - It is possible to do by writing html code as -
But I want to avoid writing html code and to use gallery as -
This is done for styling purposes to maintain a pleasing grid. On smaller screens the half and third classes default to a single column, similar to what you're asking for. If you wanted to override this you could add CSS to force
Not something I'd want to change for the theme, so you'll have to manage that in your own repo.
Thanks for the directions.
A little help please
I tried to tweak the logic in
You can see I just added an if condition before previous logic, so If in the front matter if gallery_layout is defined it will be used instead.
Problem is in the html code the class defined to gallery is blank. I am sure the problem is with the second line