This commit is contained in:
Kameron Kenny 2024-07-01 16:27:45 -04:00
parent 0fb3d0cf4c
commit b42fa64b1f
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,7 @@ gem "exifr"
group :jekyll_plugins do group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6" gem "jekyll-feed", "~> 0.6"
gem "jekyll-exif-data"
end end
gem 'jekyll-gallery-generator' gem 'jekyll-gallery-generator'

View File

@ -8,8 +8,10 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: kameronkenny twitter_username: kameronkenny
github_username: kkenny 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: gallery:
dir: photos dir: photos

View File

@ -36,6 +36,11 @@
width="{{ image[1] | divided_by: site.gallery.thumbnail_size.retina }}" width="{{ image[1] | divided_by: site.gallery.thumbnail_size.retina }}"
height="{{ site.gallery.thumbnail_size.y | divided_by: site.gallery.thumbnail_size.retina }}" /> height="{{ site.gallery.thumbnail_size.y | divided_by: site.gallery.thumbnail_size.retina }}" />
</a> </a>
{% assign image_path = image[0] %}
{% capture has_exif %}{{ image_path | exif: "exif?" }}{% endcapture %}
{% if has_exif %}
Camera: {{ image_path | exif: 'model' }}
{% endif %}
{% endfor %} {% endfor %}
</div> </div>