-
Notifications
You must be signed in to change notification settings - Fork 25.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Individual image captions? #334
Comments
I'm thinking enhancing the alt="{% if img.alt %}{{ img.alt }}{% endif %}"
title="{% if img.title%}{{ img.title}}{% endif %}"> And then the title could be set in YAML like: gallery:
- url: unsplash-gallery-image-1.jpg
image_path: unsplash-gallery-image-1-th.jpg
alt: "placeholder image 1"
title: "Title for image 1"
- url: unsplash-gallery-image-2.jpg
image_path: unsplash-gallery-image-2-th.jpg
alt: "placeholder image 2"
title: "Title for image 2" |
Thank you! I've made a change to the |
I did a quick test and was able to get it working. I mistakenly suggest adding the ...
<a href=
{% if img.url contains "http" %}
"{{ img.url }}"
{% else %}
"{{ img.url | prepend: "/images/" | prepend: base_path }}"
{% endif %}
{% if img.title %}title="{{ img.title }}"{% endif %}
>
... I'll be adding this small enhancement to the theme shortly. But if you add the line with |
Yes, it works! Thank you! |
- Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays - Close #334
- Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays - Close #334
- Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays - Close mmistakes#334
- Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays - Close mmistakes#334
HCZ Material theme
- Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays - Close mmistakes#334
- Apply optional `title` attribute to image anchors that trigger Magnific Popup overlays - Close mmistakes#334
Add custom header and footer include files
Two questions about image captions:
<figure>
or gallery) rather than simply one caption for the entire group/gallery?title:
orcaption:
attribute to each gallery image in the front matter, and then somehow setting that as the titleSrc in the Magnific Popup options.The text was updated successfully, but these errors were encountered: