mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 04:59:32 +00:00
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
|
{% if loaded %}
|
||
|
<div>
|
||
|
{% if (config.showSourceTitle and sourceTitle) or config.showPublishDate %}
|
||
|
<div class="newsfeed-source light small dimmed">
|
||
|
{% if sourceTitle and config.showSourceTitle %}
|
||
|
{{ sourceTitle }}{% if config.showPublishDate %}, {% else %}: {% endif %}
|
||
|
{% endif %}
|
||
|
{% if config.showPublishDate %}
|
||
|
{{ publishDate }}:
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
<div class="newsfeed-title bright medium light{{ ' no-wrap' if config.wrapTitle }}">
|
||
|
{{ title }}
|
||
|
</div>
|
||
|
<div class="newsfeed-desc small light{{ ' no-wrap' if config.wrapDescription }}">
|
||
|
{% if config.truncDescription %}
|
||
|
{{ description | truncate(config.lengthDescription) }}
|
||
|
{% else %}
|
||
|
{{ description }}
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|
||
|
{% else %}
|
||
|
<div class="small dimmed">
|
||
|
{{ "LOADING" | translate | safe }}
|
||
|
</div>
|
||
|
{% endif %}
|