diff --git a/CHANGELOG.md b/CHANGELOG.md index ebbd9262..27164cc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [3.2.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.2) + +### Enhancement + +- Add support for image captions in Magnific Popup overlays via the [`gallery` helper](https://github.com/mmistakes/minimal-mistakes/issues/334) + ## [3.2.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.2.1) ### Bug Fixes diff --git a/_includes/gallery b/_includes/gallery index 9e6f31ea..f1ef8c10 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 %}