svg
This commit is contained in:
parent
11f4958e5f
commit
3988986d60
|
@ -80,10 +80,11 @@
|
|||
{% endif %}
|
||||
|
||||
|
||||
{% set stylefeed = "background-color: #" ~ color['main'] ~ ";" %}
|
||||
{% set stylecolor = "background-color: #" ~ color['main'] ~ ";" %}
|
||||
{% if feed.color is defined and feed.color is not null %}
|
||||
{% set stylefeed = "background-color: #" ~ feed.color ~ ";" %}
|
||||
{% set stylecolor = "background-color: #" ~ feed.color ~ ";" %}
|
||||
{% endif %}
|
||||
{% set stylefeed = "" %}
|
||||
{% if feed.image is not null and feed.image != ""%}
|
||||
{% set stylefeed = stylefeed ~ "background: url(" ~ feed.image ~ ") no-repeat center; background-size: cover;" %}
|
||||
{% endif %}
|
||||
|
@ -93,7 +94,7 @@
|
|||
{% if feed.image is not empty %}
|
||||
<img src="{{feed.image}}" width="100%">
|
||||
{% endif %}
|
||||
<div class="caption" style="background-color: #{{ colorbodyfont }}; color: #{{ colorbodyback }};">
|
||||
<div class="caption" style="{{ stylecolor }}">
|
||||
<h1 class="grid-preview-title" style="color: #{{ colorbodyback }};">{{ feed.title }}</h1>
|
||||
<small>le {{ feed.date|date("d/m/Y à H:i") }}</small><br>
|
||||
{{ feed.description | nl2br }}
|
||||
|
|
Loading…
Reference in New Issue