{# vars #} {% set image_page = page.permalink|setpath(rootpath) %} {% set preview_image_url = assetspath ~ preview_image|trim('.') %} {% set image_ratio = (myimage.height/myimage.width * 100) %} {% set date = myimage.exif["date_taken"] %} {#{% set date = myimage.date %}#} {# Image nav #} {% if parent_images|length > 1 %}
{# next #} {% if next_image %} {% set url = '../' ~ getSibling(next_image.file_name|removeExtension) ~ '/' %} {% endif %} {# previous #} {% if prev_image %} {% set url = '../' ~ getSibling(prev_image.file_name|removeExtension) ~ '/' %} {% endif %} {#{% set next = parent_images|keys[(file_index + 1)] %} {% if next is not empty %} {% set url = '../' ~ getSibling(next|removeExtension) ~ '/' %} {% endif %} {% set prev = parent_images|keys[(file_index - 1)] %} {% if prev is not empty %} {% set url = '../' ~ getSibling(prev|removeExtension) ~ '/' %} {% endif %}#}
{% endif %} {# Fotomoto #} {% set fotomoto = '' %} {% set fotomoto_collection = '' %} {% if parent.plugins.fotomoto.enabled and parent.plugins.fotomoto.store_id and parent.plugins.fotomoto.enabled_page %} {% if parent.plugins.fotomoto.buy_button %} {% set fotomoto = ' file-fotomoto file-fotomoto-buybutton' %} {% else %} {% set fotomoto = ' file-fotomoto' %} {% endif %} {% if parent.plugins.fotomoto.collection|trim %} {% set fotomoto_collection = ' data-fotomoto-collection="' ~ parent.plugins.fotomoto.collection|trim ~ '"' %} {% endif %} {% endif %} {# File template #}
{# Comments icon with comments count #}

{{ page_title }}

{% if image_description is not empty %}

{{ image_description }}

{% endif %} {% if date is not empty %}
{% endif %} {# close (back) button #} {# Popup EXIF #} {% set exif = '' %} {% if parent.popup.caption.exif and myimage.exif %} {% for key, val in myimage.exif if val is not empty %} {% set exif = exif ~ key ~ ':' ~ val ~ ';' %} {% endfor %} {% if exif %} {% set exif = 'data-exif="' ~ exif ~ '"' %} {% endif %} {% endif %} {# Image element #} {# EXIF #} {% if myimage.exif is not empty %}
{% for key, val in myimage.exif if val is not empty %}
{{ key|title|replace({'_':' '}) }}
{{ val }}
{% endfor %}
{% endif %} {# Disqus comments? #} {% if page.accounts.disqus_shortname and page.plugins.disqus.image %}

Comments

{% endif %}