diff --git a/src/sigal/settings.py b/src/sigal/settings.py index e30ab3f..2ed1b4f 100644 --- a/src/sigal/settings.py +++ b/src/sigal/settings.py @@ -30,6 +30,7 @@ _DEFAULT_CONFIG = { "albums_sort_attr": "name", "albums_sort_reverse": False, "autorotate_images": True, + "autoplay": False, "colorbox_column_size": 3, "copy_exif_data": False, "datetime_format": "%c", diff --git a/src/sigal/templates/sigal.conf.py b/src/sigal/templates/sigal.conf.py index ab64d43..77505a6 100644 --- a/src/sigal/templates/sigal.conf.py +++ b/src/sigal/templates/sigal.conf.py @@ -39,6 +39,9 @@ theme = "galleria" # Path to a CSS file that can be used to customize themes # user_css = +# Enable autoplay (galleria only) +# autoplay = False + # ---------------- # Image processing (ignored if use_orig = True) # ---------------- diff --git a/src/sigal/themes/galleria/templates/album_items.html b/src/sigal/themes/galleria/templates/album_items.html index d3c42ca..9352462 100644 --- a/src/sigal/themes/galleria/templates/album_items.html +++ b/src/sigal/themes/galleria/templates/album_items.html @@ -93,6 +93,7 @@ }); Galleria.configure({ + {% if settings.autoplay %}autoplay: true,{% endif %} imageCrop: false, transition: "fade", thumbnails: "lazy"