Update docs
This commit is contained in:
parent
f58d99d2ec
commit
efaa9ba20a
26
README.md
26
README.md
@ -52,3 +52,29 @@ docker-compose up -d
|
|||||||
|
|
||||||
Now whenever you share an image or gallery through Immich, it will automatically create the
|
Now whenever you share an image or gallery through Immich, it will automatically create the
|
||||||
correct public path for you.
|
correct public path for you.
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
The gallery is created using [LightGallery](https://github.com/sachinchoolur/lightGallery). You can change various settings to change how your gallery displays by
|
||||||
|
updating the `lightGallery` section in `/views/gallery.ejs`:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
lightGallery(document.getElementById('lightgallery'), {
|
||||||
|
plugins: [lgZoom, lgThumbnail, lgVideo, lgFullscreen],
|
||||||
|
speed: 500
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
For example to disable the download button for images, you would add `download: false`:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
lightGallery(document.getElementById('lightgallery'), {
|
||||||
|
plugins: [lgZoom, lgThumbnail, lgVideo, lgFullscreen],
|
||||||
|
download: false,
|
||||||
|
speed: 500
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
You can find all of LightGallery's settings here:
|
||||||
|
|
||||||
|
https://www.lightgalleryjs.com/docs/settings/
|
||||||
|
Loading…
Reference in New Issue
Block a user