From c5366eba4d92c3d461e47cdc425d7bce354fc630 Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Wed, 4 Apr 2018 00:50:00 +0200 Subject: [PATCH] Workaround for galleria and videos It looks like galleria's video tag in json support only external provider (youtube etc.). So instead this shows an empty image and on top a layer with the html video tag. --- sigal/themes/galleria/static/img/empty.png | Bin 0 -> 95 bytes sigal/themes/galleria/templates/index.html | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 sigal/themes/galleria/static/img/empty.png diff --git a/sigal/themes/galleria/static/img/empty.png b/sigal/themes/galleria/static/img/empty.png new file mode 100644 index 0000000000000000000000000000000000000000..1914264c08781d1f30ee0b8482bccf44586f2dc1 GIT binary patch literal 95 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga%mF?ju0VQumF+E%TuG2$FoVOh l8)-lem#2$k2*>s01R$Gz9%CSj!PC{xWt~$(697H@6ZHT9 literal 0 HcmV?d00001 diff --git a/sigal/themes/galleria/templates/index.html b/sigal/themes/galleria/templates/index.html index 5aa3d9c..71a31f6 100644 --- a/sigal/themes/galleria/templates/index.html +++ b/sigal/themes/galleria/templates/index.html @@ -152,7 +152,8 @@ image: "{{ media.filename }}" {% endif %} {% if media.type == "video" %} - video: "{{ media.filename }}" + image: "{{ theme.url }}/img/empty.png", + layer: "" {% endif %} }, {% endfor %}