{% assign spot_scripts = all_scripts[include.spot] | where_exp:"s","page_scripts contains s.slug" %} {% for script in spot_scripts %} {% assign script_href = script.href %} {% unless script_href contains "http" %} {% assign script_href = script_href | prepend: scripts_url %} {% endunless %} {% endfor %}