diff --git a/Gemfile b/Gemfile index b66f7e7..e0dda9a 100644 --- a/Gemfile +++ b/Gemfile @@ -8,6 +8,7 @@ gem "exifr" group :jekyll_plugins do gem "jekyll-feed", "~> 0.6" + gem "jekyll-exif-data" end gem 'jekyll-gallery-generator' diff --git a/_config.yml b/_config.yml index 4f82c12..1199e41 100644 --- a/_config.yml +++ b/_config.yml @@ -8,8 +8,10 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com twitter_username: kameronkenny github_username: kkenny -exclude: [node_modules, Gemfile, Gemfile.lock, gulpfile.js, deploy.sh, README.md, index.md, .gitignore] +plugins: + - jekyll-exif-data +exclude: [node_modules, Gemfile, Gemfile.lock, gulpfile.js, deploy.sh, README.md, index.md, .gitignore, Dockerfile, Jenkinsfile, app, entrypoint.sh, docker-compose.yml] #-------------------------------------------- gallery: dir: photos diff --git a/_layouts/gallery_page.html b/_layouts/gallery_page.html index f5bed98..8a398ce 100644 --- a/_layouts/gallery_page.html +++ b/_layouts/gallery_page.html @@ -36,6 +36,11 @@ width="{{ image[1] | divided_by: site.gallery.thumbnail_size.retina }}" height="{{ site.gallery.thumbnail_size.y | divided_by: site.gallery.thumbnail_size.retina }}" /> + {% assign image_path = image[0] %} + {% capture has_exif %}{{ image_path | exif: "exif?" }}{% endcapture %} + {% if has_exif %} + Camera: {{ image_path | exif: 'model' }} + {% endif %} {% endfor %}