Rearrange mimetype-icon dict for clarity
This commit is contained in:
parent
fd914051aa
commit
92880ba3eb
2 changed files with 8 additions and 3 deletions
|
@ -120,6 +120,7 @@ ADDITIONAL_MIMETYPES = {
|
|||
|
||||
'mkv': 'video/x-matroska',
|
||||
|
||||
'ass': 'text/plain',
|
||||
'srt': 'text/plain',
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
{# Specific extensions, then specific mimetypes, then general mimtypes #}
|
||||
{% set thumbnails =
|
||||
{
|
||||
"audio": "audio",
|
||||
"svg": "svg",
|
||||
|
||||
"application/zip": "archive",
|
||||
"application/x-tar": "archive",
|
||||
|
||||
"archive": "archive",
|
||||
"txt": "txt",
|
||||
"svg": "svg",
|
||||
"audio": "audio",
|
||||
"video": "video",
|
||||
"text": "txt",
|
||||
|
||||
}
|
||||
%}
|
||||
{% macro create_photo_card(photo, view="grid") %}
|
||||
|
|
Loading…
Reference in a new issue