assets/data/galleries.json in j1-template-2022.1.0 vs assets/data/galleries.json in j1-template-2022.1.1
- old
+ new
@@ -43,18 +43,18 @@
{% comment %} Process YML config data
================================================================================ {% endcomment %}
{% comment %} Set config files
-------------------------------------------------------------------------------- {% endcomment %}
-{% assign apps = site.data.apps %}
+{% assign modules = site.data.modules %}
{% comment %} Set config data
-------------------------------------------------------------------------------- {% endcomment %}
{% assign environment = site.environment %}
-{% assign jg_config_defaults = apps.defaults.justifiedGallery.defaults %}
-{% assign jg_config_settings = apps.justifiedGallery.settings %}
+{% assign jg_config_defaults = modules.defaults.justifiedGallery.defaults %}
+{% assign jg_config_settings = modules.justifiedGallery.settings %}
{% comment %} Set config options
-------------------------------------------------------------------------------- {% endcomment %}
{% assign jg_config = jg_config_defaults | merge: jg_config_settings %}
@@ -93,27 +93,39 @@
{% if item.gallery.type == "video-html5" or item.gallery.type == "video-online"%}
{% for video in item.gallery.videos %}
{% assign image_no = forloop.index %}
{
+ "video": "{{ video }}",
+ "image_path": "{{ item.gallery.image_path }}",
+
{% if item.gallery.type == "video-html5" %}
"video_path": "{{ item.gallery.video_path }}",
"video_id": "{{ video | slugify }}",
{% endif %}
- "image_path": "{{ item.gallery.image_path }}",
+
{% for poster in item.gallery.poster %}
{% if forloop.index == image_no %}
"poster": "{{ poster }}",
{% endif %}
{% endfor %}
- "video": "{{ video }}",
+
{% if item.gallery.captions_lightbox %}
{% for caption in item.gallery.captions_lightbox %}
{% if forloop.index == image_no %}
"captions_lightbox": "{{ caption }}",
{% endif %}
{% endfor %}
{% endif %}
+
+ {% if item.gallery.player_params %}
+ {% for params in item.gallery.player_params %}
+ {% if forloop.index == image_no %}
+ "player_params": "{{ params }}",
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+
{% if item.gallery.captions_gallery %}
{% for caption in item.gallery.captions_gallery %}
{% if forloop.index == image_no %}
"captions_gallery": "{{ caption }}"
{% endif %}