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 @@