exif
This commit is contained in:
parent
0fb3d0cf4c
commit
b42fa64b1f
1
Gemfile
1
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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue