Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom HTML template for caption output #74

Open
arnowelzel opened this issue Apr 10, 2021 · 0 comments
Open

Add custom HTML template for caption output #74

arnowelzel opened this issue Apr 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@arnowelzel
Copy link
Owner

arnowelzel commented Apr 10, 2021

Add an option to provide a custom HTML template for the caption output with placeholders similar to custom sharing links:

{{caption}} - The image caption
{{exif-camera}} - EXIF information, camera model
{{exif-focal}} - EXIF information, focal length
{{exif-fstop}} - EXIF information, f-stop
{{exif-shutter}} - EXIF information, shutter speed
{{exif-iso}} - EXIF information, ISO
{{exif-date}} - EXIF information, date/time

All EXIF elements would be enclosed in <span> elements as documented to keep compatibility with existing CSS customization (e.h. <span class="pspw__caption__exif_focal">...</span> for {{exif-focal}}.

If no custom template is used, the default format would be:

{{caption}}<div class="pspw__caption__exif">{{exif-camera}} ({{exif-focal}}, {{exif-fstop}}, {{exif-shutter}}, {{exif-iso}}, {{exif-date}})</div>
@arnowelzel arnowelzel added the enhancement New feature or request label Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant