From 6c9f688ee7cc4a5f692bdd4717ea85701ff7ff64 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 1 Dec 2023 20:45:47 +0100 Subject: [PATCH] only top for doc --- app/item/models.py | 2 ++ app/static/css/site.scss | 6 +++++- app/templates/listitem.html | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/item/models.py b/app/item/models.py index 17815e7..efb08ad 100644 --- a/app/item/models.py +++ b/app/item/models.py @@ -124,6 +124,8 @@ class Item(models.Model): key = key.replace('og:', '') data[key] = value data["url"] = self.url + if "m/documents" in self.url: + data["type"] = "document" return data diff --git a/app/static/css/site.scss b/app/static/css/site.scss index c478fcd..d39f061 100644 --- a/app/static/css/site.scss +++ b/app/static/css/site.scss @@ -116,7 +116,11 @@ header { width: 100%; aspect-ratio: 16/9; object-fit: cover; - object-position: top; + } + &.document { + img { + object-position: top; + } } } .content { diff --git a/app/templates/listitem.html b/app/templates/listitem.html index f0fc103..a72adaf 100644 --- a/app/templates/listitem.html +++ b/app/templates/listitem.html @@ -4,7 +4,7 @@

{{ item.title }}

{{ item.data.title }}

-
+