Reference an Image: Version 2
---
title: this is a post or a page
image:
- src: example-1.jpg
alt: 'Leaves and a blue sky.'
- src: example-2.jpg
alt: 'Fall leaves on the ground at sunset, with a dog walking in the background.'
---
{% assign image = page.image[0] %}
{% include image.html %}
{% assign image = page.image[1] %}
{% include image.html %}
<!--
The include parameter syntax is fine, but this method keeps more of the data in a standardized format (YAML) and is more readable to my eyes.
-->