initial commit

This commit is contained in:
Rupus Reinefjord 2018-01-11 23:40:31 +01:00
commit a528892ac8
46 changed files with 2152 additions and 0 deletions

32
templates/view_photo.html Normal file
View file

@ -0,0 +1,32 @@
{% extends 'layout.html' %}
{% set active_page = 'photo' %}
{% set title = 'Photography' %}
{% block body %}
<main class="view-image">
<img srcset="{{ photo_resize_url(photo, 800) }},
{{ photo_resize_url(photo, 1200) }} 1.5x,
{{ photo_resize_url(photo, 1600) }} 2x"
src="{{ photo_resize_url(photo, 800) }}">
<article>
{% if photo.title %}
<h2>{{ photo.title }}</h2>
{% endif %}
{% if photo.description %}
{{ photo.html_description|safe }}
{% endif %}
{% if next or prev %}
</article>
<nav>
{% if next %}
<a href="{{ url_for('view_photo', photo_id=next.id) }}" class="nav-item next">&larr; Next</a>
{% endif %}
{% if prev %}
<a href="{{ url_for('view_photo', photo_id=prev.id) }}" class="nav-item prev">Previous &rarr;</a>
{% endif %}
{% endif %}
</main>
{% endblock %}