Open demonno opened 5 years ago
Photos folder:
Config:
PLUGIN_PATHS = ['plugins/'] PLUGINS = ['photos''] # photos conf PHOTO_LIBRARY = "photos" PHOTO_EXIF_COPYRIGHT_AUTHOR = 'Author' PHOTO_WATERMARK = True PHOTO_WATERMARK_TEXT = "example.com" PHOTO_EXIF_REMOVE_GPS = True PHOTO_EXIF_COPYRIGHT = "CC-BY-ND"
article.md
gallery: {photo}path/to/folder
Usage in template
{% for title, gallery in article.photo_gallery %} {% for name, photo, thumb, exif, caption in gallery %} <img src="{{ SITEURL }}/{{ photo }}"> {% endfor %} {% endfor %}
Rendered HTML:
<img src="/photos/path/to/folder/photo_1.jpg"> <img src="/photos/path/to/folder/photo_2.jpg"> // this is not found and extension is change to `.jpg`
@demonno we have moved the photos plugin to a new location https://github.com/pelican-plugins/photos . Are you still interested in this feature?
Photos folder:
Config:
article.md
Usage in template
Rendered HTML: