-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New image components (image galleries) (#2877)
Added support for multiple image galleries, and created a sample post showing how to enable and use them. --------- Signed-off-by: George Araújo <[email protected]>
- Loading branch information
1 parent
8121ad0
commit f23e35e
Showing
4 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
layout: post | ||
title: a post with image galleries | ||
date: 2024-12-04 01:59:00 | ||
description: this is what included image galleries could look like | ||
tags: formatting images | ||
categories: sample-posts | ||
thumbnail: assets/img/9.jpg | ||
images: | ||
lightbox2: true | ||
photoswipe: true | ||
spotlight: true | ||
venobox: true | ||
--- | ||
|
||
The images in this post are all zoomable, arranged into different mini-galleries using different libraries. | ||
|
||
## [Lightbox2](https://lokeshdhakar.com/projects/lightbox2/) | ||
|
||
<a href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/1/img-2500.jpg" data-lightbox="roadtrip"><img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/1/img-200.jpg" /></a> | ||
<a href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-2500.jpg" data-lightbox="roadtrip"><img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-200.jpg" /></a> | ||
<a href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-2500.jpg" data-lightbox="roadtrip"><img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-200.jpg" /></a> | ||
|
||
--- | ||
|
||
## [PhotoSwipe](https://photoswipe.com/) | ||
|
||
<div class="pswp-gallery pswp-gallery--single-column" id="gallery--getting-started"> | ||
<a href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-2500.jpg" | ||
data-pswp-width="1669" | ||
data-pswp-height="2500" | ||
target="_blank"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-200.jpg" alt="" /> | ||
</a> | ||
<!-- cropped thumbnail: --> | ||
<a href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/7/img-2500.jpg" | ||
data-pswp-width="1875" | ||
data-pswp-height="2500" | ||
data-cropped="true" | ||
target="_blank"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/7/img-200.jpg" alt="" /> | ||
</a> | ||
<!-- data-pswp-src with custom URL in href --> | ||
<a href="https://unsplash.com" | ||
data-pswp-src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-2500.jpg" | ||
data-pswp-width="2500" | ||
data-pswp-height="1666" | ||
target="_blank"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-200.jpg" alt="" /> | ||
</a> | ||
<!-- wrapped with any element: --> | ||
<div> | ||
<a href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/6/img-2500.jpg" | ||
data-pswp-width="2500" | ||
data-pswp-height="1667" | ||
target="_blank"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/6/img-200.jpg" alt="" /> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
--- | ||
|
||
## [Spotlight JS](https://nextapps-de.github.io/spotlight/) | ||
|
||
<!-- Group 1 --> | ||
<div class="spotlight-group"> | ||
<a class="spotlight" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/1/img-2500.jpg"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/1/img-200.jpg" /> | ||
</a> | ||
<a class="spotlight" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-2500.jpg"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-200.jpg" /> | ||
</a> | ||
<a class="spotlight" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-2500.jpg"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-200.jpg" /> | ||
</a> | ||
</div> | ||
<!-- Group 2 --> | ||
<div class="spotlight-group"> | ||
<a class="spotlight" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/4/img-2500.jpg"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/4/img-200.jpg" /> | ||
</a> | ||
<a class="spotlight" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/5/img-2500.jpg"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/5/img-200.jpg" /> | ||
</a> | ||
<a class="spotlight" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/6/img-2500.jpg"> | ||
<img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/6/img-200.jpg" /> | ||
</a> | ||
</div> | ||
|
||
--- | ||
|
||
## [Venobox](https://veno.es/venobox/) | ||
|
||
<a class="venobox" data-gall="myGallery" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/1/img-2500.jpg"><img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/1/img-200.jpg" /></a> | ||
<a class="venobox" data-gall="myGallery" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-2500.jpg"><img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/2/img-200.jpg" /></a> | ||
<a class="venobox" data-gall="myGallery" href="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-2500.jpg"><img src="https://cdn.photoswipe.com/photoswipe-demo-images/photos/3/img-200.jpg" /></a> |