render fix.

This commit is contained in:
Dooho Yi 2021-01-08 02:37:16 +09:00
parent 94861a81d1
commit de92694aea
2 changed files with 3 additions and 2 deletions

View file

@ -149,7 +149,7 @@ def render_dir(args, root):
a = "<div>" + open(full_path).read() + "</div>"
else:
subtype = subtype + ' unkown-file'
a = "<a href='{}'>{}</a>"
a = "<a href='{}'>{}</a>".format(relative_path, caption)
# a = FILE_TYPES[type_]
if type_ == 'image':
@ -166,7 +166,7 @@ def render_dir(args, root):
if type_ not in FILE_TYPES and subtype not in SUB_TYPES:
# catch exceptions not yet defined in FILE_TYPES or SUB_TYPES
a = "<a href='{}'>{}</a>"
a = "<a href='{}'>{}</a>".format(relative_path, caption)
if args.verbose:
message = 'not in list of file types, adding as plain href: \n'
print(type_, subtype, message, name)

View file

@ -0,0 +1 @@
mdmd