-
-
-
- Back
-
-
+{% if sub_index %}
+
+{% else %}
+

+{% endif %}
{% endblock %}
{% block content %}
-
- {% for galleries_line in galleries|reverse|batch(3)|reverse %}
-
- {% for gallery in galleries_line|reverse %}
{% endfor %}
+
+ {% for galleries_line in galleries|reverse|batch(3)|reverse %}
+
+ {% for gallery in galleries_line|reverse %}
-
.
+
+ {% if gallery.cover_type == "video" %}
+ {% set video = Video(gallery.cover) %}
+ {{ video.copy() }}
+
+
+

+
+ {% else %}
+ {% set cover = Image(gallery.cover) %}
+ {{ cover.copy() }}
+
+ {% endif %}
+
{% endfor %}
+
+ {% endfor %}
+
+
.
{% endblock %}
diff --git a/prosopopee/themes/exposure/templates/item.html b/prosopopee/themes/exposure/templates/item.html
index 7696dd4..0109eb1 100644
--- a/prosopopee/themes/exposure/templates/item.html
+++ b/prosopopee/themes/exposure/templates/item.html
@@ -1,16 +1,15 @@
-{% set absolute_url = absolute_url+ gallery.link+"/" -%}
+{% set absolute_url = absolute_url+ gallery.link+"/" %}
-
- {{ gallery.title }}
- {{ absolute_url }}
- {{ gallery.link }}
- {% if gallery.sub_title -%}
- {{ gallery.sub_title }}
- {% endif -%}
- {{ gallery.date }}
+{{ gallery.title }}
+{{ absolute_url }}
+{{ gallery.link }}
+{% if gallery.sub_title %}
+{{ gallery.sub_title }}
+{% endif -%}
+{{ gallery.date }}
{% for sub_gallery in gallery.sub_gallery %}
- {% with gallery=sub_gallery %}
- {% include "item.html" %}
- {% endwith %}
+{% with gallery=sub_gallery %}
+{% include "item.html" %}
+{% endwith %}
{% endfor %}
-
diff --git a/prosopopee/themes/exposure/templates/menu.html b/prosopopee/themes/exposure/templates/menu.html
index f871b84..25f1362 100644
--- a/prosopopee/themes/exposure/templates/menu.html
+++ b/prosopopee/themes/exposure/templates/menu.html
@@ -1,19 +1,19 @@
diff --git a/prosopopee/themes/exposure/templates/opengraph.html b/prosopopee/themes/exposure/templates/opengraph.html
new file mode 100644
index 0000000..29dffcb
--- /dev/null
+++ b/prosopopee/themes/exposure/templates/opengraph.html
@@ -0,0 +1,16 @@
+{% set absolute_url = settings.url + "/" + name + "/" %}
+{% set cover = Image(gallery.cover) %}
+{{ cover.copy() }}
+
+
+
+{% if gallery.description %}
+
+{% endif %}
+
+
+{% if gallery.tags %}
+{% for tag in gallery.tags %}
+
+{% endfor %}
+{% endif %}
diff --git a/prosopopee/themes/exposure/templates/page-example.html b/prosopopee/themes/exposure/templates/page-example.html
index bf04078..1c8274c 100644
--- a/prosopopee/themes/exposure/templates/page-example.html
+++ b/prosopopee/themes/exposure/templates/page-example.html
@@ -1,103 +1,103 @@
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
+
-
-
-
Some title on the picture
-
Some subtitle
-
march 3th 2015
-
+
+
+
Some title on the picture
+
Some subtitle
+
march 3th 2015
+
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
-
-
-
+
diff --git a/prosopopee/themes/exposure/templates/page.html b/prosopopee/themes/exposure/templates/page.html
index 71e8757..cf5ffc9 100644
--- a/prosopopee/themes/exposure/templates/page.html
+++ b/prosopopee/themes/exposure/templates/page.html
@@ -1,32 +1,26 @@
{% extends "base.html" %}
-
{% block css %}
{% endblock %}
-
{% block logo %}
{% endblock %}
-
{% block content %}
-
{% for section in gallery.sections %}
- {% include "sections/" + section.type + ".html" %}
+{% include "sections/" + section.type + ".html" %}
{% endfor %}
-
+
+ HOME
+
-
{% endblock %}
diff --git a/prosopopee/themes/exposure/templates/sections/author.html b/prosopopee/themes/exposure/templates/sections/author.html
index e38e196..ee0d870 100644
--- a/prosopopee/themes/exposure/templates/sections/author.html
+++ b/prosopopee/themes/exposure/templates/sections/author.html
@@ -1,33 +1,33 @@
{% set image = Image(section.image) %}
{{ image.copy() }}
diff --git a/prosopopee/themes/exposure/templates/sections/bordered-picture.html b/prosopopee/themes/exposure/templates/sections/bordered-picture.html
index cc70590..2db4a2b 100644
--- a/prosopopee/themes/exposure/templates/sections/bordered-picture.html
+++ b/prosopopee/themes/exposure/templates/sections/bordered-picture.html
@@ -1,53 +1,51 @@
{% if section.background %}
-
-{% endif %}
-
-{% if section.image.type == "video" %}
- {% set video = Video(section.image) %}
- {% set caption = section.text %}
- {{ video.copy() }}
-
-
-
![]()
-
- {% if caption %}
-
-
{{ caption }}
-
- {% endif %}
-
-
-{% else %}
- {% set image = Image(section.image) %}
- {% set caption = section.text %}
- {{ image.copy() }}
-
-{% endif %}
-
-{% if section.background %}
+
+ {% endif %}
+ {% if section.image.type == "video" %}
+ {% set video = Video(section.image) %}
+ {% set caption = section.text %}
+ {{ video.copy() }}
+
+
+
![]()
+
+ {% if caption %}
+
+
{{ caption }}
+
+ {% endif %}
+
+ {% else %}
+ {% set image = Image(section.image) %}
+ {% set caption = section.text %}
+ {{ image.copy() }}
+
+ {% endif %}
+ {% if section.background %}
+
{% endif %}
diff --git a/prosopopee/themes/exposure/templates/sections/full-picture.html b/prosopopee/themes/exposure/templates/sections/full-picture.html
index dfb5467..7b88dc8 100644
--- a/prosopopee/themes/exposure/templates/sections/full-picture.html
+++ b/prosopopee/themes/exposure/templates/sections/full-picture.html
@@ -1,53 +1,45 @@
{% if section.image.type == "video" %}
- {% set video = Video(section.image) %}
- {{ video.copy() }}
-
-
-
- {% if section.text %}
-
-
-
{{ section.text.title }}
-
{{ section.text.sub_title }}
- {% if section.text.date_end %}
-
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
- {% else %}
- {% if section.text.date %}
-
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %}
- {% endif %}
-
-
- {% endif %}
-
-
-
-

-
-
-
-
-{% else %}
- {% set image = Image(section.image) %}
- {{ image.copy() }}
-
-
-
+{% set video = Video(section.image) %}
+{{ video.copy() }}
+
+
{% if section.text %}
-
-
-
{{ section.text.title }}
-
{{ section.text.sub_title }}
- {% if section.text.date_end %}
-
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
- {% else %}
- {% if section.text.date %}
-
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %}
- {% endif %}
-
-
+
+
+
{{ section.text.title }}
+
{{ section.text.sub_title }}
+ {% if section.text.date_end %}
+
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
+ {% else %}
+ {% if section.text.date %}
+
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %}
+ {% endif %}
+
+
{% endif %}
-
-
+
+

+
+
+{% else %}
+{% set image = Image(section.image) %}
+{{ image.copy() }}
+
+ {% if section.text %}
+
+
+
{{ section.text.title }}
+
{{ section.text.sub_title }}
+ {% if section.text.date_end %}
+
{{ section.text.date.strftime("%d %B %Y") }} to {{ section.text.date_end.strftime("%d %B %Y") }}
+ {% else %}
+ {% if section.text.date %}
+
{{ section.text.date.strftime("%d %B %Y") }}
{% endif %}
+ {% endif %}
+
+
+ {% endif %}
+
{% endif %}
diff --git a/prosopopee/themes/exposure/templates/sections/html.html b/prosopopee/themes/exposure/templates/sections/html.html
index 8bd5a39..31f2851 100644
--- a/prosopopee/themes/exposure/templates/sections/html.html
+++ b/prosopopee/themes/exposure/templates/sections/html.html
@@ -1,11 +1,11 @@
{% if section.background or section.color %}
-
-{% endif %}
-
+
+ {% endif %}
+
- {{ section.html }}
+ {{ section.html }}
-
-{% if section.background or section.color %}
+
+ {% if section.background or section.color %}
{% endif %}
diff --git a/prosopopee/themes/exposure/templates/sections/panorama.html b/prosopopee/themes/exposure/templates/sections/panorama.html
index a9e2767..e019744 100644
--- a/prosopopee/themes/exposure/templates/sections/panorama.html
+++ b/prosopopee/themes/exposure/templates/sections/panorama.html
@@ -1,5 +1,5 @@
{% set image = Image(section.image) %}
{{ image.copy() }}
-
+
diff --git a/prosopopee/themes/exposure/templates/sections/paragraph.html b/prosopopee/themes/exposure/templates/sections/paragraph.html
index 8c9aba1..c870afe 100644
--- a/prosopopee/themes/exposure/templates/sections/paragraph.html
+++ b/prosopopee/themes/exposure/templates/sections/paragraph.html
@@ -1,18 +1,14 @@
{% if section.background or section.color %}
-
-{% endif %}
-
-
-
+
+ {% endif %}
+
{% if section.title %}
- {{ section.title }}
+ {{ section.title }}
{% else %}
-
+
{% endif %}
-
{{ section.text }}
-
-
-{% if section.background or section.color %}
-
+
+ {% if section.background or section.color %}
+
{% endif %}
diff --git a/prosopopee/themes/exposure/templates/sections/pictures-group.html b/prosopopee/themes/exposure/templates/sections/pictures-group.html
index 747bba2..13843ab 100644
--- a/prosopopee/themes/exposure/templates/sections/pictures-group.html
+++ b/prosopopee/themes/exposure/templates/sections/pictures-group.html
@@ -1,59 +1,50 @@
{% if section.background %}
-
-{% endif %}
-
-
-{% for line in section.images %}
+
+ {% endif %}
+
+ {% for line in section.images %}
- {% for image in line %}
-
+ {% for image in line %}
+
{% if image.type == "video" %}
- {% set caption = image.text %}
- {% set video = Video(image) %}
- {{ video.copy() }}
-
-
![]()
-
- {% if caption %}
-
-
{{ caption }}
-
- {% endif %}
-
- {% else %}
- {% set caption = image.text %}
- {% set image = Image(image) %}
- {{ image.copy() }}
-
-
- {% if caption %}
-
-
{{ caption }}
-
- {% endif %}
-
-
- {% endif %}
-
+ {% set caption = image.text %}
+ {% set video = Video(image) %}
+ {{ video.copy() }}
+
![]()
+
+ {% if caption %}
+
+
{{ caption }}
-
- {% if not loop.last %}
-
{% endif %}
-
+ {% else %}
+ {% set caption = image.text %}
+ {% set image = Image(image) %}
+ {{ image.copy() }}
+
+
+ {% if caption %}
+
+
{{ caption }}
+
+ {% endif %}
+
+ {% endif %}
+
+ {% if not loop.last %}
+
+ {% endif %}
+ {% endfor %}
+
{% endfor %}
-
-
-{% endfor %}
-
-
-{% if section.background %}
-
+
+ {% if section.background %}
+
{% endif %}
diff --git a/prosopopee/themes/exposure/templates/sections/text.html b/prosopopee/themes/exposure/templates/sections/text.html
index ea09657..499b2a1 100644
--- a/prosopopee/themes/exposure/templates/sections/text.html
+++ b/prosopopee/themes/exposure/templates/sections/text.html
@@ -1,11 +1,9 @@
{% if section.background or section.color %}
-
-{% endif %}
-
-
+
+ {% endif %}
+
-
-{% if section.background or section.color %}
-
+
+ {% if section.background or section.color %}
+
{% endif %}
diff --git a/prosopopee/themes/exposure/templates/share.html b/prosopopee/themes/exposure/templates/share.html
index 6626c49..a37929f 100644
--- a/prosopopee/themes/exposure/templates/share.html
+++ b/prosopopee/themes/exposure/templates/share.html
@@ -1,18 +1,18 @@
-{% set absolute_url = settings.url + "/" + link -%}
+{% set absolute_url = settings.url + "/" + link %}
diff --git a/prosopopee/themes/light/templates/feed.xml b/prosopopee/themes/light/templates/feed.xml
index ba5b2dd..cecd1af 100644
--- a/prosopopee/themes/light/templates/feed.xml
+++ b/prosopopee/themes/light/templates/feed.xml
@@ -1,23 +1,13 @@
-
- {{ settings.title }}
- {{ settings.sub_title }}
- {{ settings.url }}
-
-
- {% for gallery in galleries %}
- {% set absolute_url = settings.url + "/" + gallery.link %}
- -
- {{ gallery.title }}
- {{ absolute_url }}
- {{ gallery.link }}
- {% if gallery.sub_title %}
- {{ gallery.sub_title }}
- {% endif %}
- {{ gallery.date }}
-
- {% endfor %}
-
-
+
+ {{ settings.title }}
+ {{ settings.sub_title }}
+ {{ settings.url }}
+
+ {% for gallery in galleries %}
+ {% set absolute_url = settings.url + "/" %}
+ {% include "item.html" %}
+ {% endfor %}
+
diff --git a/prosopopee/themes/light/templates/gallery-index.html b/prosopopee/themes/light/templates/gallery-index.html
index c5b3ebd..ea0e48b 100644
--- a/prosopopee/themes/light/templates/gallery-index.html
+++ b/prosopopee/themes/light/templates/gallery-index.html
@@ -5,36 +5,46 @@
{% endif %}
-
-
-
-
-
+
+
+
+
+
-
-
- {{ gallery.title }} · {{ settings.title }}
-
+
+
+ {% if gallery.description %}
+
+ {% endif %}
+ {% if gallery.lang %}
+
+ {% endif %}
+ {% if settings.settings.og %}
+ {% include "opengraph.html" %}
+ {% endif %}
-
-
- {% for section in gallery.sections %}
- {% include "sections/" + section.type + ".html" %}
- {% endfor %}
+
{{ gallery.title }} · {{ settings.title }}
+
- {% if settings.share %}
- {% include "share.html" %}
- {% endif %}
+
+
+ {% for section in gallery.sections %}
+ {% include "sections/" + section.type + ".html" %}
+ {% endfor %}
-
-
- {% include "footer.html" %}
-
+ {% if settings.share %}
+ {% include "share.html" %}
+ {% endif %}
+
+
+
+ {% include "footer.html" %}
+
diff --git a/prosopopee/themes/light/templates/item.html b/prosopopee/themes/light/templates/item.html
new file mode 100644
index 0000000..0109eb1
--- /dev/null
+++ b/prosopopee/themes/light/templates/item.html
@@ -0,0 +1,15 @@
+{% set absolute_url = absolute_url+ gallery.link+"/" %}
+-
+{{ gallery.title }}
+{{ absolute_url }}
+{{ gallery.link }}
+{% if gallery.sub_title %}
+{{ gallery.sub_title }}
+{% endif -%}
+{{ gallery.date }}
+
+{% for sub_gallery in gallery.sub_gallery %}
+{% with gallery=sub_gallery %}
+{% include "item.html" %}
+{% endwith %}
+{% endfor %}
diff --git a/prosopopee/themes/light/templates/opengraph.html b/prosopopee/themes/light/templates/opengraph.html
new file mode 100644
index 0000000..29dffcb
--- /dev/null
+++ b/prosopopee/themes/light/templates/opengraph.html
@@ -0,0 +1,16 @@
+{% set absolute_url = settings.url + "/" + name + "/" %}
+{% set cover = Image(gallery.cover) %}
+{{ cover.copy() }}
+
+
+
+{% if gallery.description %}
+
+{% endif %}
+
+
+{% if gallery.tags %}
+{% for tag in gallery.tags %}
+
+{% endfor %}
+{% endif %}
diff --git a/prosopopee/themes/material/templates/gallery-index.html b/prosopopee/themes/material/templates/gallery-index.html
index d847fd0..1d96aea 100644
--- a/prosopopee/themes/material/templates/gallery-index.html
+++ b/prosopopee/themes/material/templates/gallery-index.html
@@ -1,128 +1,138 @@
-
-
-
-
-
-
-
- {% if settings.share %}
-
- {% endif %}
+
+
+
+
+
+
+
+ {% if settings.share %}
+
+ {% endif %}
-
-
- {{ gallery.title }} · {{ settings.title }}
-
+
+
+ {% if gallery.description %}
+
+ {% endif %}
+ {% if gallery.lang %}
+
+ {% endif %}
+ {% if settings.settings.og %}
+ {% include "opengraph.html" %}
+ {% endif %}
-
-
+ {{ gallery.title }} · {{ settings.title }}
+
- {% for section in gallery.sections %}
- {% include "sections/" + section.type + ".html" %}
- {% endfor %}
+
+
+
+ {% for section in gallery.sections %}
+ {% include "sections/" + section.type + ".html" %}
+ {% endfor %}
- {% if settings.share %}
- {% include 'share.html' -%}
- {% else -%}
-
- {% endif %}
+ {% if settings.share %}
+ {% include 'share.html' -%}
+ {% else -%}
+
+ {% endif %}
-
-
-
-
-
-
+
+
+
+
+
-
- {% include 'footer.html'%}
-
+
+
+ {% include 'footer.html'%}
+
diff --git a/prosopopee/themes/material/templates/opengraph.html b/prosopopee/themes/material/templates/opengraph.html
new file mode 100644
index 0000000..29dffcb
--- /dev/null
+++ b/prosopopee/themes/material/templates/opengraph.html
@@ -0,0 +1,16 @@
+{% set absolute_url = settings.url + "/" + name + "/" %}
+{% set cover = Image(gallery.cover) %}
+{{ cover.copy() }}
+
+
+
+{% if gallery.description %}
+
+{% endif %}
+
+
+{% if gallery.tags %}
+{% for tag in gallery.tags %}
+
+{% endfor %}
+{% endif %}