mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Add safe option to newsfeed templates
This commit is contained in:
parent
af6cf70558
commit
19bb2a0238
@ -33,7 +33,7 @@
|
|||||||
{% if (config.showSourceTitle and sourceTitle) or config.showPublishDate %}
|
{% if (config.showSourceTitle and sourceTitle) or config.showPublishDate %}
|
||||||
<div class="newsfeed-source light small dimmed">
|
<div class="newsfeed-source light small dimmed">
|
||||||
{% if sourceTitle and config.showSourceTitle %}
|
{% if sourceTitle and config.showSourceTitle %}
|
||||||
{{ sourceTitle }}{% if config.showPublishDate %}, {% else %}: {% endif %}
|
{{ sourceTitle | safe }}{% if config.showPublishDate %}, {% else %}: {% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if config.showPublishDate %}
|
{% if config.showPublishDate %}
|
||||||
{{ publishDate }}:
|
{{ publishDate }}:
|
||||||
@ -46,9 +46,9 @@
|
|||||||
{% if config.showDescription %}
|
{% if config.showDescription %}
|
||||||
<div class="newsfeed-desc small light{{ ' no-wrap' if not config.wrapDescription }}">
|
<div class="newsfeed-desc small light{{ ' no-wrap' if not config.wrapDescription }}">
|
||||||
{% if config.truncDescription %}
|
{% if config.truncDescription %}
|
||||||
{{ description | truncate(config.lengthDescription) }}
|
{{ description | truncate(config.lengthDescription) | safe }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ description }}
|
{{ description | safe }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user