better previews for documents
This commit is contained in:
parent
559eaeaa66
commit
f5e4ad0de6
2 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,8 @@ class Item(models.Model):
|
|||
if not key:
|
||||
key = meta.attrib.get('property')
|
||||
value = meta.attrib.get('content')
|
||||
if key == "thumbnail":
|
||||
value = value.replace('/512p', '/1024p')
|
||||
if key and value:
|
||||
if key in ('viewport', ):
|
||||
continue
|
||||
|
|
|
@ -116,6 +116,7 @@ header {
|
|||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
|
|
Loading…
Reference in a new issue