~xdavidwu/xdavidwu.link

206fba36477f3d23d04ba4d39dbf8d7d9d1a5926 — Michael Rose 8 years ago 4204330
Add support for gallery image captions in Magnific Popup overlays
- Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays
- Close #334
1 files changed, 3 insertions(+), 2 deletions(-)

M _includes/gallery
M _includes/gallery => _includes/gallery +3 -2
@@ 25,6 25,7 @@
        {% else %}
          "{{ img.url | prepend: "/images/" | prepend: base_path }}"
        {% endif %}
        {% if img.title %}title="{{ img.title }}"{% endif %}
      >
        <img src=
          {% if img.image_path contains "http" %}


@@ 32,7 33,7 @@
          {% else %}
            "{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
          {% endif %}
        alt="{% if img.alt %}{{ img.alt }}{% endif %}">
          alt="{% if img.alt %}{{ img.alt }}{% endif %}">
      </a>
    {% else %}
      <img src=


@@ 41,7 42,7 @@
        {% else %}
          "{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
        {% endif %}
      alt="{% if img.alt %}{{ img.alt }}{% endif %}">
        alt="{% if img.alt %}{{ img.alt }}{% endif %}">
    {% endif %}
  {% endfor %}
  {% if include.caption %}