From b7185c81559594af62f88c57ab8f0ee152a0a3d9 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 1 Jun 2016 21:26:14 -0400 Subject: [PATCH] Add support for gallery image captions in Magnific Popup overlays - Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays - Close #334 --- _includes/gallery | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_includes/gallery b/_includes/gallery index 9e6f31ea7397..f1ef8c10cee5 100644 --- a/_includes/gallery +++ b/_includes/gallery @@ -25,6 +25,7 @@ {% else %} "{{ img.url | prepend: "/images/" | prepend: base_path }}" {% endif %} + {% if img.title %}title="{{ img.title }}"{% endif %} > {% if img.alt %}{{ img.alt }}{% endif %} + alt="{% if img.alt %}{{ img.alt }}{% endif %}"> {% else %} {% if img.alt %}{{ img.alt }}{% endif %} + alt="{% if img.alt %}{{ img.alt }}{% endif %}"> {% endif %} {% endfor %} {% if include.caption %}