all repos — nasg @ 73764e96bdbc842ca19360e0cdfc7f058787bea8

block_exif.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
<aside class="exif">
	<dl>
{% if post.exif.camera %}
		<dt>Camera</dt>
		<dd>
			<svg class="icon"><use xlink:href="#icon-camera" /></svg>
			{{ post.exif.camera }}
		</dd>
{% endif %}
{% if post.exif.aperture %}
		<dt>Aperture</dt>
		<dd>
			<svg class="icon"><use xlink:href="#icon-aperture" /></svg>
			f/{{ post.exif.aperture }}
		</dd>
{% endif %}
{% if post.exif.shutter_speed %}
		<dt>Shutter speed</dt>
		<dd>
			<svg class="icon"><use xlink:href="#icon-clock" /></svg>
			{{ post.exif.shutter_speed }} sec
		</dd>
{% endif %}
{% if post.exif.focal_length %}
		<dt>Focal length (as set)</dt>
		<dd>
			<svg class="icon"><use xlink:href="#icon-focallength" /></svg>
			{{ post.exif.focal_length }}{% if not post.exif.focal_length|search( 'mm' ) %} mm{% endif %}
		</dd>
{% endif %}
{% if post.exif.iso %}
		<dt>Sensitivity</dt>
		<dd>
			<svg class="icon"><use xlink:href="#icon-sensitivity" /></svg>
			ISO {{ post.exif.iso }}
		</dd>
{% endif %}
{% if post.exif.lens %}
		<dt>Lens</dt>
		<dd>
			<svg class="icon"><use xlink:href="#icon-lens" /></svg>
			{{ post.exif.lens }}
		</dd>
{% endif %}
{% if (post.exif.geo_latitude) and (post.exif.geo_longitude) %}
		<dt>Coordinates</dt>
		<dd>
			<svg class="icon"><use xlink:href="#icon-location" /></svg>
			<a class="h-geo geo p-location" href="https://www.bing.com/maps?cp={{ post.exif.geo_latitude}}~{{ post.exif.geo_longitude }}&v=2&lvl=16&sty=a&sp=point.{{ post.exif.geo_latitude}}_{{ post.exif.geo_longitude }}_{{ site.url|urlencode() ~ '/' ~ post.slug|urlencode() }}">
				<span class="p-latitude">{{ post.exif.geo_latitude }}</span>
				<span class="p-longitude">{{ post.exif.geo_longitude }}</span>
			</a>
		</dd>
{% endif %}
	</dl>
</aside>