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

View file

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

View file

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