BCLibraries / burns-exhibits

Hugo site for Burns Library exhibits
0 stars 1 forks source link

Image alignment in large gallery #3

Closed monahakk closed 5 years ago

monahakk commented 5 years ago

Is it possible for us to be able to choose the alignment (ie left, right, center) for images in the large gallery pages? Rather than always having the text to the left of the image?

Otterfan commented 5 years ago

Totally doable. It will probably look something like:

{{% largefigure [...] side="left" %}}
Otterfan commented 5 years ago

I added a new (optional) align attribute, e.g.:

{{% largefigure src="../img.jpg" headline="Foo" size="small"  align="left" %}}

Allowable values are:

Centered images will automatically be set to 100%, no matter what their size attribute.

Otterfan commented 5 years ago

Closed in 369ed00, I think.