-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Make EXIF data displayed configurable #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. If you reopen this pull request, I can merge it.
|
||
# Config which exif data to display | ||
# Tag is the actual exif tag, icon is a fontawesome icon. Use JSON notation without line breaks | ||
exif_display: '[{"tag": "Model", "icon": "camera-retro"}, {"tag": "FNumber", "icon": "dot-circle-o"}, {"tag": "ExposureTime", "icon": "clock-o"}, {"tag": "ISOSpeedRatings", "icon": "info-circle"}]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a better name would be exif_tags
instead of exif_display
.
@@ -307,46 +307,18 @@ | |||
}); | |||
|
|||
function getExifDataMarkup(img) { | |||
var exif = fetchExifData(img); | |||
var exif_display = $('#main').data('exif-display'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
@@ -16,7 +16,7 @@ <h1><a href="index.html"><strong>{{ site.header.title }}</strong> {{ site.header | |||
</header> | |||
|
|||
<!-- Main --> | |||
<div id="main"> | |||
<div id="main" data-exif-display='{{ site.exif_display }}'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
If you (after 3,5 years of no comment) still care about this PR feel free to copy the provided code and merge it yourself. This PR can be considered as MIT-licensed, thus do what you want with the code. |
I am not sure how but I missed this PR. I didn't get an email about this PR in my inbox. Anyway, thanks for your comment, I'll add it to the repo. Thanks again for your time. |
Changes added to master! |
Closes #11 via EXIF UserComment and Closes #23
I only tested this with my own site, but it works well enough over there.
I didn't really test anything but the default so it might break if one were to put loads of stuff into the exif-data footer and/or has an exif user-comment that is pretty long.
People will just have to figure it out I guess.