Skip to content

Commit

Permalink
Add .JPG and .jpeg extensions to Magnific Popup lightbox call. Fixes m…
Browse files Browse the repository at this point in the history
  • Loading branch information
jluccisano committed Feb 12, 2017
1 parent 7b78547 commit 3edb9c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _posts/2013-05-22-sample-post-images.md
Expand Up @@ -33,8 +33,8 @@ Apply the `half` class like so to display two images side by side that share the
And you'll get something that looks like this:

<figure class="half">
<a href="http://placehold.it/1200x600.jpg"><img src="http://placehold.it/600x300.jpg"></a>
<a href="http://placehold.it/1200x600.jpg"><img src="http://placehold.it/600x300.jpg"></a>
<a href="http://placehold.it/1200x600.JPG"><img src="http://placehold.it/600x300.jpg"></a>
<a href="http://placehold.it/1200x600.jpeg"><img src="http://placehold.it/600x300.jpg"></a>
<figcaption>Two images.</figcaption>
</figure>

Expand Down
2 changes: 1 addition & 1 deletion assets/js/_main.js
Expand Up @@ -44,7 +44,7 @@ $(function() {
});

// Add lightbox class to all image links
$("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").addClass("image-popup");
$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup");

// Magnific-Popup options
$(document).ready(function() {
Expand Down

0 comments on commit 3edb9c8

Please sign in to comment.