galleries/gallery-standard-post/5.jpg

Gallery

Posted by Some Person Published on February 06, 2015

Here you’ll find a simple gallery, that just adds all of the images at full-width directly in the post content.

Galleries are defined in a data-sheet, set type and gallery-id in front matter and include gallery.html within the content.

_data/galleries.yml
- id: gallery
  imagefolder: /img/galleries/gallery-standard-post
  images:
  - filename: 1.jpg
    alttext: Bloom Flat
  - filename: 2.jpg
    alttext: Bloom
  - filename: 3.jpg
    alttext: Blossom in a Star
  - filename: 4.jpg
    alttext: Blossom
  - filename: 5.jpg
    alttext: Bubbly Bloom
  - filename: 6.jpg
    alttext: Rays of Gold
  - filename: 7.jpg
    alttext: Exotic
  - filename: 8.jpg
    alttext: Filled out


front matter
---
type: gallery
gallery-id: gallery
---


post content

{% include gallery.html %}

Categories: image

Tags: gallery image