From ff9b65a101257b67e31aaccd84721c31be2ad72b Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 1 Jul 2021 21:08:49 +0200 Subject: [PATCH] Update light.html --- resources/themes/light.html | 130 ++++++++++++++++++++++++++++++++++-- 1 file changed, 123 insertions(+), 7 deletions(-) diff --git a/resources/themes/light.html b/resources/themes/light.html index d741e7a..3f5ce8a 100644 --- a/resources/themes/light.html +++ b/resources/themes/light.html @@ -42,6 +42,10 @@ font-family: 'Newsreader', serif; color: var(--color-black); } + img { + object-fit: cover; + object-position: center; + } img, video, iframe { width: 100%; } @@ -58,6 +62,10 @@ padding: 1rem; } + .header { + margin-bottom: 2rem; + } + .title { text-align: center; font-size: 4rem; @@ -105,7 +113,113 @@ @@ -119,22 +233,24 @@
{% for item in data %} -
{% for article in item.feed.entries %}
-

+ {% if article.cover %} +

{{ article.title }}

-

{{ article.title }}

-

{{ item.feed.title }}

+ {% endif %} +
+

{{ article.title }}

+

{{ item.feed.title }}

+
-
+
{{ article.description.value|safe }}
{% endfor %} -
{% endfor %}