<article>
    {% include project_info.html %}
    {% for image in site.data.images %}
        {% if image.project == project.title %}
            {% include image.html %}
            {% break %}
        {% endif %}
    {% endfor %}
</article>

{% for image in site.data.images %}
    {% if image.project == project.title %}
        {% assign image = image %}
        {% break %}
    {% endif %}
{% endfor %}

<article class="{{image.orientation}}">
    {% include project_info.html %}
    {% include image.html %}
</article>

Use image orientation for projects
Use image orientation for projects
