diff --git a/prosopopee/themes/exposure/templates/index.html b/prosopopee/themes/exposure/templates/index.html index 128e027..e289689 100644 --- a/prosopopee/themes/exposure/templates/index.html +++ b/prosopopee/themes/exposure/templates/index.html @@ -35,6 +35,7 @@ + {% set video = "" %} {% else %} diff --git a/prosopopee/themes/material/static/css/styles.css b/prosopopee/themes/material/static/css/styles.css index b8290f6..a0e03fc 100644 --- a/prosopopee/themes/material/static/css/styles.css +++ b/prosopopee/themes/material/static/css/styles.css @@ -151,12 +151,10 @@ div#bg-section { margin-top: 20px } -.parallax video { +video.fillWidth { position: absolute; z-index: 0; bottom: 0; -} -.parallax video.fillWidth { width: 100%; } diff --git a/prosopopee/themes/material/templates/index.html b/prosopopee/themes/material/templates/index.html index 76f6da6..9b5242a 100644 --- a/prosopopee/themes/material/templates/index.html +++ b/prosopopee/themes/material/templates/index.html @@ -8,70 +8,75 @@ {% block content %}
- {% for galleries_line in galleries|reverse|batch(3)|reverse %} + {% for galleries_line in galleries|reverse|batch(2)|reverse %} {% for gallery in galleries_line|reverse %} - {% if loop.length is divisibleby 2 %} -
- {% else %} - {% if loop.last %} -
- {% else %} -
- {% endif %} - {% endif %} - -
-
- {% set cover = Image(gallery.cover) %} - {{ cover.copy() }} - - - {{ gallery.title }} - {% if gallery.sub_title %} : {{ gallery.sub_title }}{% endif %} - -
-
- - {% if gallery.tags or gallery.date %} -
- {% if gallery.tags %}{% for tag in gallery.tags -%} -
-
- -
- {{ tag[0].capitalize() }} -
- - {{ tag }} -
-
- {% endfor -%} - {% endif %} - {% if gallery.date %} -
- {{ gallery.date.strftime("%d %B %Y") }} -
- {% endif %} -
- {% endif %} -
-
- -
- {% endfor %} -
- {% endfor %} -
+
+ +
+
+ {% if gallery.cover_type == "video" %} + {% set video = Video(gallery.cover) %} + {{ video.copy() }} + {% else %} + {% set cover = Image(gallery.cover) %} + {{ cover.copy() }} + {% endif %} + {% if video %} + + + {% set video = "" %} + {% else %} + + {% endif %} - - - + + - {% endblock %} + +{% endblock %} diff --git a/prosopopee/themes/material/templates/sections/bordered-picture.html b/prosopopee/themes/material/templates/sections/bordered-picture.html index f4118cd..498299f 100644 --- a/prosopopee/themes/material/templates/sections/bordered-picture.html +++ b/prosopopee/themes/material/templates/sections/bordered-picture.html @@ -7,25 +7,25 @@ {% endif %} {% if section.background %}
- {% endif %} - - {% if section.background %} + {% endif %} +
+ {% if video %} + + + {% else %} + + + {% if caption %} +
+
{{ caption }}
+
+ {% endif %} +
+ {% endif %} +
+ {% if section.background %}
{% endif %} diff --git a/prosopopee/themes/material/templates/sections/html.html b/prosopopee/themes/material/templates/sections/html.html index eb1d8d0..7fe7a51 100644 --- a/prosopopee/themes/material/templates/sections/html.html +++ b/prosopopee/themes/material/templates/sections/html.html @@ -1,5 +1,5 @@ {% if section.background or section.color %} -
+
{% endif %}
diff --git a/prosopopee/themes/material/templates/sections/paragraph.html b/prosopopee/themes/material/templates/sections/paragraph.html index cf8ebfd..f9fb252 100644 --- a/prosopopee/themes/material/templates/sections/paragraph.html +++ b/prosopopee/themes/material/templates/sections/paragraph.html @@ -1,5 +1,5 @@ {% if section.background or section.color %} -
+
{% endif %}
{% if section.title %} diff --git a/prosopopee/themes/material/templates/sections/pictures-group.html b/prosopopee/themes/material/templates/sections/pictures-group.html index d3cfc7a..19e2842 100644 --- a/prosopopee/themes/material/templates/sections/pictures-group.html +++ b/prosopopee/themes/material/templates/sections/pictures-group.html @@ -18,11 +18,12 @@