# Big Image Sample

## Using Multiple Images

The image banners at the top of the page are refered to as “bigimg” in this theme. They are optional, and one more more can be specified. If more than one is specified, the images rotate every 10 seconds. In the front matter, bigimgs are specified using an array of hashes.

A single bigimg can be specified in the front matter by the following YAML:

bigimg: [{src: "/img/pexels-adrien-olichon-2387793.jpg", desc: "Photo by Adrien Olichon from Pexels"}]


Multiple bigimgs can be specified in the front matter by the following YAML:

bigimg: [{src: "/img/pexels-adrien-olichon-2387793.jpg", desc: "Photo by Adrien Olichon from Pexels"},
{src: "/img/pexels-lisa-fotios-1698576.jpg", desc: "Photo by Lisa Fotios from Pexels"},
{src: "/img/pexels-steve-johnson-1044989.jpg", desc: "Photo by Steve Johnson from Pexels"}]


Also note that the description field is optional, and images could instead be specified by:

bigimg: [{src: "/img/pexels-adrien-olichon-2387793.jpg"},
{src: "/img/pexels-lisa-fotios-1698576.jpg"},
{src: "/img/pexels-steve-johnson-1044989.jpg"}]


The above YAML array of hashes were written in “flow” style. However when generating a new page or post with hugo new post/mypost.md, hugo may interpret the archetype for bigimg in the default YAML style. Defining multiple bigimg’s complete with descriptions in this style would be specified by:

bigimg: