[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 %}
|
||||
</div>
|
||||
</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
|
||||
-->{% endfor %}
|
||||
</div>
|
||||
|
@ -1,6 +1,7 @@
|
||||
{{ helpers.copy_image(section.image) }}
|
||||
{% set image = Image(section.image) %}
|
||||
{{ image.copy()}}
|
||||
<section class="bordered-picture baguette">
|
||||
<a href="{{ helpers.get_image_name(section.image) }}">
|
||||
<img src="{{ helpers.get_image_name(section.image) }}">
|
||||
<a href="{{ image }}">
|
||||
<img src="{{ image }}">
|
||||
</a>
|
||||
</section>
|
||||
|
@ -1,5 +1,6 @@
|
||||
{{ helpers.copy_image(section.image) }}
|
||||
<section class="full-picture" style="background: transparent url('{{ helpers.get_image_name(section.image) }}') no-repeat scroll center top / cover;">
|
||||
{% set image = Image(section.image) %}
|
||||
{{ image.copy() }}
|
||||
<section class="full-picture" style="background: transparent url('{{ image }}') no-repeat scroll center top / cover;">
|
||||
{% if section.text %}
|
||||
<div class="picture-text">
|
||||
<div class="picture-text-column">
|
||||
|
@ -1,4 +1,5 @@
|
||||
{{ helpers.copy_image(section.image) }}
|
||||
{% set image = Image(section.image) %}
|
||||
{{ image.copy() }}
|
||||
<section class="panorama">
|
||||
<img src="{{ helpers.generate_thumbnail(section.image, "x800") }}">
|
||||
<img src="{{ image.generate_thumbnail("x800") }}">
|
||||
</section>
|
||||
|
@ -2,10 +2,11 @@
|
||||
{% for line in section.images %}
|
||||
<div class="pictures-line">
|
||||
{% for image in line %}
|
||||
{{ helpers.copy_image(image) }}
|
||||
{% set image = Image(image) %}
|
||||
{{ image.copy() }}
|
||||
<div class="picture">
|
||||
<a href="{{ helpers.get_image_name(image) }}">
|
||||
<img src="{{ helpers.generate_thumbnail(image, "x600") }}">
|
||||
<a href="{{ image }}">
|
||||
<img src="{{ image.generate_thumbnail("x600") }}">
|
||||
</a>
|
||||
</div>
|
||||
{% if not loop.last %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user