From 09c87dbc77eed96af0f69b185ec2ae51184f3bf3 Mon Sep 17 00:00:00 2001 From: Sewon Ahn Date: Sat, 16 Jan 2021 22:11:12 +0900 Subject: [PATCH] Fix render issue --- distribusi/distribusi/distribusi.py | 8 +- distribusi/distribusi/page_template_event.py | 7 +- test_data/events/0000/index.html | 75 --- test_data/events/0001/index.html | 145 ------ test_data/src/ai/index.html | 74 --- test_data/src/img/index.html | 74 --- test_data/src/index.html | 482 ------------------- test_data/src/scripts/index.html | 74 --- test_data/src/scripts/lib/index.html | 74 --- 9 files changed, 7 insertions(+), 1006 deletions(-) delete mode 100644 test_data/events/0000/index.html delete mode 100644 test_data/events/0001/index.html delete mode 100644 test_data/src/ai/index.html delete mode 100644 test_data/src/img/index.html delete mode 100644 test_data/src/index.html delete mode 100644 test_data/src/scripts/index.html delete mode 100644 test_data/src/scripts/lib/index.html diff --git a/distribusi/distribusi/distribusi.py b/distribusi/distribusi/distribusi.py index 2247205..b260da6 100644 --- a/distribusi/distribusi/distribusi.py +++ b/distribusi/distribusi/distribusi.py @@ -162,7 +162,7 @@ def render_dir(args, directory): relative_path = "./{}/{}".format(relative, name) if ignore.test(name): - continue + pass elif 'index.html' not in name: full_path = os.path.join(root, name) mime = MIME_TYPE.from_file(full_path) @@ -274,7 +274,7 @@ def distribusify(args, directory, freg): # noqa for name in sorted(files): if ignore.test(name): - continue + print("Ignore : " + name) elif 'index.html' not in name: full_path = os.path.join(root, name) mime = MIME_TYPE.from_file(full_path) @@ -340,7 +340,7 @@ def distribusify(args, directory, freg): # noqa subtype = subtype + ' unkown-file' a = a.replace('{}', name) - if len(path) == 3 and artist: + if (len(path) == 3 and artist) or (len(path) == 4 and artist == "events"): fid = freg.get_index(artist, name) html.append(div(args, type_, subtype, a, name, fid)) @@ -352,7 +352,7 @@ def distribusify(args, directory, freg): # noqa for name in dirs: if ignore.test(name): - continue + pass elif (len(path) == 3 and artist) or (len(path) == 4 and artist == "events"): # dirs 내부의 콘텐츠를 렌더링해 가져와야 함 fid = freg.get_index(artist, name) diff --git a/distribusi/distribusi/page_template_event.py b/distribusi/distribusi/page_template_event.py index 1f2d057..e156e36 100644 --- a/distribusi/distribusi/page_template_event.py +++ b/distribusi/distribusi/page_template_event.py @@ -7,6 +7,9 @@ html_head_event = """ + + + 환대의 조각들 Fragments of Hospitality @@ -17,13 +20,9 @@ html_head_event = """ -
- - -