Loading Parks

{% if total %} {% endif %} {% assign all_activities = '' %} {% assign all_states = '' %} {% assign all_parks = '' %}
{% for item in data %} {% for activity in item.activities %} {% unless all_activities contains activity.name %} {% assign all_activities = all_activities | append: ',' | append: activity.name %} {% endunless %} {% endfor %} {% for address in item.addresses %} {% unless all_states contains address.stateCode %} {% assign all_states = all_states | append: ',' | append: address.stateCode %} {% endunless %} {% endfor %} {% assign all_parks = all_parks | append: ',' | append: item.fullName %} {% assign image = item.images[0].url %} {% for info in parks.extraInfo %} {% if info.park_title == item.fullName and info.image %} {% assign image = info.image %} {% endif %} {% endfor %}
{% endfor %}