jekyll-airtable icon indicating copy to clipboard operation
jekyll-airtable copied to clipboard

Access attachments.yml within collection loop

Open danklammer opened this issue 6 years ago • 0 comments

Is it possible to access attachments within a collection loop? I am trying to do something like this, but am having no luck. Thanks!

<ul>
    {% for author in site.authors %}

        <h5>{{ author.name }}</h5>
        {% assign photo = site.data.airtable.attachments[author.image] %}
        <img src="{{ photo.url }}" />

    {% endfor %}
</ul>

danklammer avatar Oct 28 '18 18:10 danklammer