{% assign scripts = site.static_files | where_exp: "file", "file.path contains '/_scripts'" %} {% for script in scripts %} {% endfor %}