render fix.
This commit is contained in:
parent
94861a81d1
commit
de92694aea
2 changed files with 3 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ def render_dir(args, root):
|
||||||
a = "<div>" + open(full_path).read() + "</div>"
|
a = "<div>" + open(full_path).read() + "</div>"
|
||||||
else:
|
else:
|
||||||
subtype = subtype + ' unkown-file'
|
subtype = subtype + ' unkown-file'
|
||||||
a = "<a href='{}'>{}</a>"
|
a = "<a href='{}'>{}</a>".format(relative_path, caption)
|
||||||
# a = FILE_TYPES[type_]
|
# a = FILE_TYPES[type_]
|
||||||
|
|
||||||
if type_ == 'image':
|
if type_ == 'image':
|
||||||
|
|
@ -166,7 +166,7 @@ def render_dir(args, root):
|
||||||
|
|
||||||
if type_ not in FILE_TYPES and subtype not in SUB_TYPES:
|
if type_ not in FILE_TYPES and subtype not in SUB_TYPES:
|
||||||
# catch exceptions not yet defined in FILE_TYPES or 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:
|
if args.verbose:
|
||||||
message = 'not in list of file types, adding as plain href: \n'
|
message = 'not in list of file types, adding as plain href: \n'
|
||||||
print(type_, subtype, message, name)
|
print(type_, subtype, message, name)
|
||||||
|
|
|
||||||
1
sample/notes/20210107T184852+0900_또다른 경우/4.md
Normal file
1
sample/notes/20210107T184852+0900_또다른 경우/4.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
mdmd
|
||||||
Loading…
Reference in a new issue