diff options
author | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2023-06-30 22:52:04 +0800 |
---|---|---|
committer | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2023-06-30 22:52:04 +0800 |
commit | 03ea17117db4dd00e3dd38984389181c2c0faa2f (patch) | |
tree | 2c04a3cf8edbc8eb51519ff5202d477d703e0e8f /_config.yml | |
parent | a8c9de315d6680f17217dc0abbc135d23092f344 (diff) |
feat: upgrade photo previewer to PhotoSwipe 5 (#115)
Diffstat (limited to '_config.yml')
-rw-r--r-- | _config.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/_config.yml b/_config.yml index 981fa59..40d9762 100644 --- a/_config.yml +++ b/_config.yml @@ -183,11 +183,17 @@ yat: # Pagination setting # paginate: 5 -# Photo previewer settings +# Photo previewer settings (PhotoSwipe 5) +# the options please refer to: https://photoswipe.com/options/ # photo_previewer: -# photo_selectors: "section.main" # Preview specified areas of photos by CSS selectors (It also can be an array) -# photo_scale: 2 # Adjust the preview scale of photos -# background_opacity: 0.85 # Background backdrop opacity +# gallery: "section.main" +# children: "a.photo-swipe" +# bgOpacity: 0.8 +# padding: +# top: 20 +# bottom: 40 +# left: 100 +# right: 100 # Disqus comments # disqus: |