lektor-website/templates/blocks/banner.html

6 lines
220 B
HTML
Raw Permalink Normal View History

2015-12-19 14:52:17 +01:00
{% set image = record.attachments.get(this.image) %}
<div class="page-banner page-banner-{{ this.height }}" style="background-image: url({{ image|url
}})">{% if this.contents %}
2015-12-19 14:52:17 +01:00
{{ this.contents }}
{% endif %}</div>