Test thumbnail

This commit is contained in:
Sewon Ahn 2020-12-11 18:16:17 +09:00
parent f20c7e132f
commit d679bfaea9
3 changed files with 3 additions and 5 deletions

View file

@ -151,9 +151,6 @@ def render_dir(args, directory):
print('Found file in dir ', name, 'as', mime)
if type_ in FILE_TYPES:
a = FILE_TYPES[type_].format(relative_path, caption)
# expansion for different kind of text files
@ -177,7 +174,7 @@ def render_dir(args, directory):
if type_ == 'image':
a = FILE_TYPES[type_].format(relative_path, caption)
if args.thumbnail:
a = thumbnail(relative_path, relative_path, args)
a = thumbnail(full_path, relative_path, args)
if args.no_filenames:
caption = ""
if args.captions:

View file

@ -12,7 +12,7 @@ html_head = """
<link rel="stylesheet" type="text/css" href="/src/style/common.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="/src/scripts/mobileScroll.js"></script>
<script src="./main.js"></script>
</head>
<body>
<div>

View file

@ -9,3 +9,4 @@ src
participants.html
style.css
404.html
main.js