From 003b28afd3f498cd8f26fb6de00cf3ea3b0c634d Mon Sep 17 00:00:00 2001 From: Lukas Ruge <lukeslog@googlemail.com> Date: Fri, 21 Dec 2018 21:14:02 +0100 Subject: [PATCH] gallerie Das sollte echt tun --- _includes/gallery.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_includes/gallery.html b/_includes/gallery.html index bf4effa1..ddad39de 100644 --- a/_includes/gallery.html +++ b/_includes/gallery.html @@ -28,7 +28,11 @@ {% if image.tags contains {{include.topic}} %} <figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> <a href="{{image.picurl}}" itemprop="contentUrl" data-size="{{image.size | default: "600x400"}}"> + {% if image.thumburl %} + <img src="{{image.thumburl}}" itemprop="thumbnail" alt="{{image.description}}" /> + {% else %} <img src="{{image.picurl}}" itemprop="thumbnail" alt="{{image.description}}" /> + {% endif %} </a> {% if image.author %} <figcaption itemprop="{{image.description}}">{{image.description}} ({{image.license}} {{image.author}})</figcaption> -- GitLab