root / cloudcms / templates / content / block_with_color.html @ 630dc5b7
History | View | Annotate | Download (351 Bytes)
1 |
{% if content.title %} |
---|---|
2 |
<h2 style=" |
3 |
{% spaceless %}
|
4 |
{% if content.color %}color:{{ content.color }};{% endif %}
|
5 |
|
6 |
{% endspaceless %}"> |
7 |
{{ content.title }} |
8 |
</h2>
|
9 |
{% endif %} |
10 |
{% if content.mediafile.type == "image" %} |
11 |
<img class="section-img" src="{{ content.mediafile.get_absolute_url }}" /> |
12 |
{% endif %} |
13 |
|
14 |
{{ content.content|safe }} |
15 |
|
16 |
|