Fix render issue
This commit is contained in:
parent
5681375b12
commit
09c87dbc77
9 changed files with 7 additions and 1006 deletions
|
|
@ -162,7 +162,7 @@ def render_dir(args, directory):
|
||||||
relative_path = "./{}/{}".format(relative, name)
|
relative_path = "./{}/{}".format(relative, name)
|
||||||
|
|
||||||
if ignore.test(name):
|
if ignore.test(name):
|
||||||
continue
|
pass
|
||||||
elif 'index.html' not in name:
|
elif 'index.html' not in name:
|
||||||
full_path = os.path.join(root, name)
|
full_path = os.path.join(root, name)
|
||||||
mime = MIME_TYPE.from_file(full_path)
|
mime = MIME_TYPE.from_file(full_path)
|
||||||
|
|
@ -274,7 +274,7 @@ def distribusify(args, directory, freg): # noqa
|
||||||
|
|
||||||
for name in sorted(files):
|
for name in sorted(files):
|
||||||
if ignore.test(name):
|
if ignore.test(name):
|
||||||
continue
|
print("Ignore : " + name)
|
||||||
elif 'index.html' not in name:
|
elif 'index.html' not in name:
|
||||||
full_path = os.path.join(root, name)
|
full_path = os.path.join(root, name)
|
||||||
mime = MIME_TYPE.from_file(full_path)
|
mime = MIME_TYPE.from_file(full_path)
|
||||||
|
|
@ -340,7 +340,7 @@ def distribusify(args, directory, freg): # noqa
|
||||||
subtype = subtype + ' unkown-file'
|
subtype = subtype + ' unkown-file'
|
||||||
|
|
||||||
a = a.replace('{}', name)
|
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)
|
fid = freg.get_index(artist, name)
|
||||||
html.append(div(args, type_, subtype, a, name, fid))
|
html.append(div(args, type_, subtype, a, name, fid))
|
||||||
|
|
||||||
|
|
@ -352,7 +352,7 @@ def distribusify(args, directory, freg): # noqa
|
||||||
|
|
||||||
for name in dirs:
|
for name in dirs:
|
||||||
if ignore.test(name):
|
if ignore.test(name):
|
||||||
continue
|
pass
|
||||||
elif (len(path) == 3 and artist) or (len(path) == 4 and artist == "events"):
|
elif (len(path) == 3 and artist) or (len(path) == 4 and artist == "events"):
|
||||||
# dirs 내부의 콘텐츠를 렌더링해 가져와야 함
|
# dirs 내부의 콘텐츠를 렌더링해 가져와야 함
|
||||||
fid = freg.get_index(artist, name)
|
fid = freg.get_index(artist, name)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@ html_head_event = """
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
<!-- EVENTS TEMPLATE -->
|
||||||
|
|
||||||
<title>환대의 조각들 Fragments of Hospitality</title>
|
<title>환대의 조각들 Fragments of Hospitality</title>
|
||||||
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
|
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
|
||||||
<meta name="generator" content="distribusi" />
|
<meta name="generator" content="distribusi" />
|
||||||
|
|
@ -17,13 +20,9 @@ html_head_event = """
|
||||||
<link rel="stylesheet" type="text/css" href="/src/style/event.css" />
|
<link rel="stylesheet" type="text/css" href="/src/style/event.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>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
<div id="logo_wrapper" class="svg_wrapper">
|
<div id="logo_wrapper" class="svg_wrapper">
|
||||||
<a href="/">
|
<a href="/">
|
||||||
|
|
|
||||||
|
|
@ -1,75 +0,0 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>환대의 조각들 Fragments of Hospitality</title>
|
|
||||||
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
|
|
||||||
<meta name="generator" content="distribusi" />
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="/src/style/common.css" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="./style.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>
|
|
||||||
<div id="menu">
|
|
||||||
<div id="logo_wrapper" class="svg_wrapper">
|
|
||||||
<a href="/">
|
|
||||||
<img id="logo_foh"src="/src/img/logo.svg" alt="환대의 조각 로고">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span id="to_about">
|
|
||||||
<a href="/about.html">
|
|
||||||
ABOUT
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_fragments">
|
|
||||||
<a href="/participants.html">
|
|
||||||
FRAGMENTS
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_timeline">
|
|
||||||
<a href="#">
|
|
||||||
TIMELINE
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="margin">
|
|
||||||
<!-- to avoid overlapping -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="wrapper_author">
|
|
||||||
<div id="fragment_wrapper">
|
|
||||||
</div>
|
|
||||||
<div id="introduction">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="archive_exit" style="display:none;"></div>
|
|
||||||
<div id="archive">
|
|
||||||
<button id="archive_button">ARCHIVE
|
|
||||||
<!-- <img id="icon_archive_more" src="src/img/icon_timeline.svg" alt=""> -->
|
|
||||||
</button>
|
|
||||||
<div id="archive_list">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contents">
|
|
||||||
<div id="frags">
|
|
||||||
<a href="../">../</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="/src/scripts/updateIntroduction.js"></script>
|
|
||||||
<script src="/src/scripts/updateArchive.js"></script>
|
|
||||||
<script src="/src/scripts/hashEvent.js"></script>
|
|
||||||
<script src="/src/scripts/mobileArchiveEvent.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,74 +0,0 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
|
|
||||||
<meta name="generator" content="distribusi" />
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="./style.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="/src/scripts/mobileScroll.js"></script>
|
|
||||||
<script src="./main.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<div id="menu">
|
|
||||||
<div id="logo_wrapper" class="svg_wrapper">
|
|
||||||
<a href="/index.html">
|
|
||||||
<img id="logo_foh"src="/src/img/logo.svg" alt="환대의 조각 로고">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span id="to_about">
|
|
||||||
<a href="/about.html">
|
|
||||||
ABOUT
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_fragments">
|
|
||||||
<a href="/participants.html">
|
|
||||||
FRAGMENTS
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_timeline">
|
|
||||||
<a href="#">
|
|
||||||
TIMELINE
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="margin">
|
|
||||||
<!-- to avoid overlapping -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="wrapper_author">
|
|
||||||
<div id="fragment_wrapper">
|
|
||||||
</div>
|
|
||||||
<div id="introduction">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="archive_exit" style="display:none;"></div>
|
|
||||||
<div id="archive">
|
|
||||||
<button id="archive_button">ARCHIVE
|
|
||||||
<!-- <img id="icon_archive_more" src="src/img/icon_timeline.svg" alt=""> -->
|
|
||||||
</button>
|
|
||||||
<div id="archive_list">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contents">
|
|
||||||
<div id="frags">
|
|
||||||
<a href="../">../</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="/src/scripts/updateIntroduction.js"></script>
|
|
||||||
<script src="/src/scripts/updateArchive.js"></script>
|
|
||||||
<script src="/src/scripts/hashEvent.js"></script>
|
|
||||||
<script src="/src/scripts/mobileArchiveEvent.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
|
|
||||||
<meta name="generator" content="distribusi" />
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="./style.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="/src/scripts/mobileScroll.js"></script>
|
|
||||||
<script src="./main.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<div id="menu">
|
|
||||||
<div id="logo_wrapper" class="svg_wrapper">
|
|
||||||
<a href="/index.html">
|
|
||||||
<img id="logo_foh"src="/src/img/logo.svg" alt="환대의 조각 로고">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span id="to_about">
|
|
||||||
<a href="/about.html">
|
|
||||||
ABOUT
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_fragments">
|
|
||||||
<a href="/participants.html">
|
|
||||||
FRAGMENTS
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_timeline">
|
|
||||||
<a href="#">
|
|
||||||
TIMELINE
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="margin">
|
|
||||||
<!-- to avoid overlapping -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="wrapper_author">
|
|
||||||
<div id="fragment_wrapper">
|
|
||||||
</div>
|
|
||||||
<div id="introduction">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="archive_exit" style="display:none;"></div>
|
|
||||||
<div id="archive">
|
|
||||||
<button id="archive_button">ARCHIVE
|
|
||||||
<!-- <img id="icon_archive_more" src="src/img/icon_timeline.svg" alt=""> -->
|
|
||||||
</button>
|
|
||||||
<div id="archive_list">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contents">
|
|
||||||
<div id="frags">
|
|
||||||
<a href="../">../</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="/src/scripts/updateIntroduction.js"></script>
|
|
||||||
<script src="/src/scripts/updateArchive.js"></script>
|
|
||||||
<script src="/src/scripts/hashEvent.js"></script>
|
|
||||||
<script src="/src/scripts/mobileArchiveEvent.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,74 +0,0 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
|
|
||||||
<meta name="generator" content="distribusi" />
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="./style.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="/src/scripts/mobileScroll.js"></script>
|
|
||||||
<script src="./main.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<div id="menu">
|
|
||||||
<div id="logo_wrapper" class="svg_wrapper">
|
|
||||||
<a href="/index.html">
|
|
||||||
<img id="logo_foh"src="/src/img/logo.svg" alt="환대의 조각 로고">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span id="to_about">
|
|
||||||
<a href="/about.html">
|
|
||||||
ABOUT
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_fragments">
|
|
||||||
<a href="/participants.html">
|
|
||||||
FRAGMENTS
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_timeline">
|
|
||||||
<a href="#">
|
|
||||||
TIMELINE
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="margin">
|
|
||||||
<!-- to avoid overlapping -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="wrapper_author">
|
|
||||||
<div id="fragment_wrapper">
|
|
||||||
</div>
|
|
||||||
<div id="introduction">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="archive_exit" style="display:none;"></div>
|
|
||||||
<div id="archive">
|
|
||||||
<button id="archive_button">ARCHIVE
|
|
||||||
<!-- <img id="icon_archive_more" src="src/img/icon_timeline.svg" alt=""> -->
|
|
||||||
</button>
|
|
||||||
<div id="archive_list">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contents">
|
|
||||||
<div id="frags">
|
|
||||||
<a href="../">../</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="/src/scripts/updateIntroduction.js"></script>
|
|
||||||
<script src="/src/scripts/updateArchive.js"></script>
|
|
||||||
<script src="/src/scripts/hashEvent.js"></script>
|
|
||||||
<script src="/src/scripts/mobileArchiveEvent.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<!-- Generated with distribusi https://git.vvvvvvaria.org/varia/distribusi -->
|
|
||||||
<meta name="generator" content="distribusi" />
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="./style.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="/src/scripts/mobileScroll.js"></script>
|
|
||||||
<script src="./main.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<div id="menu">
|
|
||||||
<div id="logo_wrapper" class="svg_wrapper">
|
|
||||||
<a href="/index.html">
|
|
||||||
<img id="logo_foh"src="/src/img/logo.svg" alt="환대의 조각 로고">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span id="to_about">
|
|
||||||
<a href="/about.html">
|
|
||||||
ABOUT
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_fragments">
|
|
||||||
<a href="/participants.html">
|
|
||||||
FRAGMENTS
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
<span id="to_timeline">
|
|
||||||
<a href="#">
|
|
||||||
TIMELINE
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="margin">
|
|
||||||
<!-- to avoid overlapping -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="wrapper_author">
|
|
||||||
<div id="fragment_wrapper">
|
|
||||||
</div>
|
|
||||||
<div id="introduction">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="archive_exit" style="display:none;"></div>
|
|
||||||
<div id="archive">
|
|
||||||
<button id="archive_button">ARCHIVE
|
|
||||||
<!-- <img id="icon_archive_more" src="src/img/icon_timeline.svg" alt=""> -->
|
|
||||||
</button>
|
|
||||||
<div id="archive_list">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contents">
|
|
||||||
<div id="frags">
|
|
||||||
<a href="../">../</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script src="/src/scripts/updateIntroduction.js"></script>
|
|
||||||
<script src="/src/scripts/updateArchive.js"></script>
|
|
||||||
<script src="/src/scripts/hashEvent.js"></script>
|
|
||||||
<script src="/src/scripts/mobileArchiveEvent.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in a new issue