{% assign id = include.map-id %} {% assign data = site.data.maps-vector[id] %} {% assign color = include.color | default: data.color | default: 'green' %} {% if data %}
{% append_lib jqvmap %} {% capture script %} {% endcapture %} {% if include.show-scripts %} {{ script }} {% else %} {% capture_global scripts %} {{ script }} {% endcapture_global %} {% endif %} {% endif %}