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
gem "jekyll-feed", "~> 0.6"
gem "jekyll-exif-data"
end
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
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

View File

@ -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 }}" />
</a>
{% assign image_path = image[0] %}
{% capture has_exif %}{{ image_path | exif: "exif?" }}{% endcapture %}
{% if has_exif %}
Camera: {{ image_path | exif: 'model' }}
{% endif %}
{% endfor %}
</div>