Photoswipe now allows alternate text for caption
Adding changes from hugo-easy-gallery f0e6d5d62f58284beadf98db71861af90f2cff8e
This commit is contained in:
parent
e214c15e36
commit
2a110c80e5
2 changed files with 5 additions and 4 deletions
|
|
@ -15,9 +15,10 @@ $( document ).ready(function() {
|
|||
// get properties from child a/img/figcaption elements,
|
||||
var $figure = $(this),
|
||||
$a = $figure.find('a'),
|
||||
$img = $figure.find('img'),
|
||||
$src = $a.attr('href'),
|
||||
$title = $figure.find('figcaption').html(),
|
||||
$msrc = $figure.find('img').attr('src');
|
||||
$title = $img.attr('alt'),
|
||||
$msrc = $img.attr('src');
|
||||
// if data-size on <a> tag is set, read it and create an item
|
||||
if ($a.data('size')) {
|
||||
var $size = $a.data('size').split('x');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue