From 6e70f28ccbd5afc1506f71f013278a9d157ef03a Mon Sep 17 00:00:00 2001 From: Prefetch Date: Thu, 27 Oct 2022 20:40:09 +0200 Subject: Optimize last images, add proof template, improve CSS --- source/_includes/image.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'source/_includes/image.html') diff --git a/source/_includes/image.html b/source/_includes/image.html index a9bc3fd..5b4f35f 100644 --- a/source/_includes/image.html +++ b/source/_includes/image.html @@ -12,22 +12,29 @@ {% comment %} If 'name' ends in "full", half-size image must exist {% endcomment %} {% assign name_full = name %} {% if suffix == "full" %} - {% assign name_half = prefix | append: "half" %} + {% assign name_half = prefix | append: "half" %} {% else %} - {% assign name_half = name_full %} + {% assign name_half = name_full %} {% endif %} {% comment %} Insert the image, linking to the full-size version {% endcomment %} +{% if include.class %} + {% assign add_class = 'class="' | append: include.class | append: '"' %} +{% endif %} +{% if include.style or include.width %} + {% assign set_width = "width:" | append: include.width %} + {% assign set_style = include.style | default: set_width %} + {% assign add_style = 'style="' | append: set_style | append: '"' %} +{% endif %}
- {% assign set_width = "width:" | append: include.width %} - -- cgit v1.2.3