mirror of
				https://github.com/caressofsteel/hugo-story.git
				synced 2025-11-04 07:45:29 +01:00 
			
		
		
		
	Merge pull request #30 from brennentsmith/master
Add lightbox support for modern image formats.
This commit is contained in:
		@@ -236,7 +236,7 @@
 | 
			
		||||
						href = $a.attr('href');
 | 
			
		||||
 | 
			
		||||
					// Not an image? Bail.
 | 
			
		||||
						if (!href.match(/\.(jpg|gif|png|mp4)$/))
 | 
			
		||||
						if (!href.match(/\.(jpg|gif|png|mp4|webp|avif)$/))
 | 
			
		||||
							return;
 | 
			
		||||
 | 
			
		||||
					// Prevent default.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user