jekyll-airtable
jekyll-airtable copied to clipboard
Access attachments.yml within collection loop
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>