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