assets/data/galleries.json in j1-template-2022.4.9 vs assets/data/galleries.json in j1-template-2022.4.10
- old
+ new
@@ -56,16 +56,22 @@
{% comment %} Set config options
-------------------------------------------------------------------------------- {% endcomment %}
{% assign jg_config = jg_config_defaults | merge: jg_config_settings %}
+{% comment %} Detect prod mode
+-------------------------------------------------------------------------------- {% endcomment %}
{% assign production = false %}
{% if environment == 'prod' or environment == 'production' %}
{% assign production = true %}
{% endif %}
+{% comment %} Main
+================================================================================ {% endcomment %}
+
{
+
{% for item in jg_config.galleries %}
"{{ item.gallery.id }}" : [
{% if item.gallery.type == "image" %}
{% for image in item.gallery.images %}
@@ -136,9 +142,10 @@
{% endfor %}
{% endif %}
]{% if forloop.last %}{% else %},{% endif %}
{% endfor %}
+
}
{% endcapture %}
{% if production %}
{{ cache | minifyJSON }}