Skip to content

Commit c5c57fe

Browse files
ususdeisaimn
authored andcommitted
Add autoplay setting for galleria (ref #520)
1 parent 9e20749 commit c5c57fe

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/sigal/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"albums_sort_attr": "name",
3131
"albums_sort_reverse": False,
3232
"autorotate_images": True,
33+
"autoplay": False,
3334
"colorbox_column_size": 3,
3435
"copy_exif_data": False,
3536
"datetime_format": "%c",

src/sigal/templates/sigal.conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
# Path to a CSS file that can be used to customize themes
4040
# user_css =
4141

42+
# Enable autoplay (galleria only)
43+
# autoplay = False
44+
4245
# ----------------
4346
# Image processing (ignored if use_orig = True)
4447
# ----------------

src/sigal/themes/galleria/templates/album_items.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
});
9494

9595
Galleria.configure({
96+
{% if settings.autoplay %}autoplay: true,{% endif %}
9697
imageCrop: false,
9798
transition: "fade",
9899
thumbnails: "lazy"

0 commit comments

Comments
 (0)