From 2f66532718cc2d2d02b057bac1ccae00a8a99190 Mon Sep 17 00:00:00 2001 From: Edwin Steele Date: Sun, 11 Mar 2018 14:40:55 +1100 Subject: [PATCH] Use galleria thumbnails for videos too Also offer a big link for videos, if configured, not just for images json loading means that static/img/empty.png is unnecessary. --- sigal/themes/galleria/static/img/empty.png | Bin 151 -> 0 bytes sigal/themes/galleria/templates/index.html | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) delete 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 deleted file mode 100644 index 9fc626c5f684efa87a6d9aa655525706078e0da4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 151 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1|;Q0k8}bl&H|6fVg?3oVGw3ym^DWND9B#o z>FdgVmz`VONQzJI**>6`Ki;O^-gkfN8$ l4ixA0ba4#fxSpH<1VAn;17qB0Eh`|4!PC{xWt~$(697OoAPfKi diff --git a/sigal/themes/galleria/templates/index.html b/sigal/themes/galleria/templates/index.html index f893995..220de32 100644 --- a/sigal/themes/galleria/templates/index.html +++ b/sigal/themes/galleria/templates/index.html @@ -135,14 +135,15 @@ var data = [ { title: "{{ media.title if media.title else media.filename }}", description: "{{ img_description(media) | e }}", + thumb: "{{ media.thumbnail }}", + {% if media.big %} + big: "{{ media.big }}", + {% endif %} {% if media.type == "image" %} - image: "{{ media.filename }}", - thumb: "{{ media.thumbnail }}" - {%- if media.big %}, - big: "{{ media.big }}"{% endif %} + image: "{{ media.filename }}" {% endif %} {% if media.type == "video" %} - video: "{{ media.filename }}" + video: "{{ media.filename }}" {% endif %} }, {% endfor %}