{%-comment-%} use `site.scripts` if `_data/scripts.yml` is not present, since theme data files aren't generally available to sites {%-endcomment-%} {%-assign scripts = site.data.scripts | default: site.scripts-%} {% for script in scripts-%} {%-if script.type %} {% assign script_type = script.type | prepend: " type='" | append: "'" %} {% else %} {%-assign script_type = "" %} {%-endif %} {%-endfor %} {%-if site.analytics.goatcounter.code != "" and site.analytics.goatcounter.code %} {%-if site.analytics.goatcounter.allow_local %} {%-endif %} {%-endif %}