[mod] update sections templates for new behavior
This commit is contained in:
parent
1866d6279e
commit
acccb41ff0
@ -31,7 +31,9 @@
|
|||||||
{% if gallery.date %}<div class="gallery-datetime">{{ gallery.date.strftime("%d %B %Y") }}</div>{% endif %}
|
{% if gallery.date %}<div class="gallery-datetime">{{ gallery.date.strftime("%d %B %Y") }}</div>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="gallery-cover" style="background-image: url('{{ helpers.generate_thumbnail(gallery.cover, "x900") }}');"></div>
|
{% set cover = Image(gallery.cover) %}
|
||||||
|
{{ cover.copy() }}
|
||||||
|
<div class="gallery-cover" style="background-image: url('{{ cover.generate_thumbnail("x900") }}');"></div>
|
||||||
</div><!-- comment tricks against space between inline-block
|
</div><!-- comment tricks against space between inline-block
|
||||||
-->{% endfor %}
|
-->{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{{ helpers.copy_image(section.image) }}
|
{% set image = Image(section.image) %}
|
||||||
|
{{ image.copy()}}
|
||||||
<section class="bordered-picture baguette">
|
<section class="bordered-picture baguette">
|
||||||
<a href="{{ helpers.get_image_name(section.image) }}">
|
<a href="{{ image }}">
|
||||||
<img src="{{ helpers.get_image_name(section.image) }}">
|
<img src="{{ image }}">
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{{ helpers.copy_image(section.image) }}
|
{% set image = Image(section.image) %}
|
||||||
<section class="full-picture" style="background: transparent url('{{ helpers.get_image_name(section.image) }}') no-repeat scroll center top / cover;">
|
{{ image.copy() }}
|
||||||
|
<section class="full-picture" style="background: transparent url('{{ image }}') no-repeat scroll center top / cover;">
|
||||||
{% if section.text %}
|
{% if section.text %}
|
||||||
<div class="picture-text">
|
<div class="picture-text">
|
||||||
<div class="picture-text-column">
|
<div class="picture-text-column">
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{{ helpers.copy_image(section.image) }}
|
{% set image = Image(section.image) %}
|
||||||
|
{{ image.copy() }}
|
||||||
<section class="panorama">
|
<section class="panorama">
|
||||||
<img src="{{ helpers.generate_thumbnail(section.image, "x800") }}">
|
<img src="{{ image.generate_thumbnail("x800") }}">
|
||||||
</section>
|
</section>
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
{% for line in section.images %}
|
{% for line in section.images %}
|
||||||
<div class="pictures-line">
|
<div class="pictures-line">
|
||||||
{% for image in line %}
|
{% for image in line %}
|
||||||
{{ helpers.copy_image(image) }}
|
{% set image = Image(image) %}
|
||||||
|
{{ image.copy() }}
|
||||||
<div class="picture">
|
<div class="picture">
|
||||||
<a href="{{ helpers.get_image_name(image) }}">
|
<a href="{{ image }}">
|
||||||
<img src="{{ helpers.generate_thumbnail(image, "x600") }}">
|
<img src="{{ image.generate_thumbnail("x600") }}">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% if not loop.last %}
|
{% if not loop.last %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user