Skip to content
Snippets Groups Projects
Commit 48bf8a78 authored by Josh Borrow's avatar Josh Borrow
Browse files

data_dir was not correctly passed around

parent d72f7fa7
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ def global_variables(active, data_dir="../data"):
def render(render_pages, data_dir, template_dir, output_dir):
""" Main rendering function for all of the pages. """
data = get_from_filesystem(render_pages, template_dir)
data = get_from_filesystem(render_pages, template_dir, data_dir)
output = [render_template(page, args, data_dir) for page, args in data]
# Save the files into the output_dir
......@@ -122,7 +122,7 @@ def copy_static(directories, output_dir):
if __name__ == "__main__":
import about
DATA_DIR = "/data"
DATA_DIR = "./data"
TEMPLATE_DIR = "./templates"
OUTPUT_DIR = "./compiled"
......@@ -130,7 +130,7 @@ if __name__ == "__main__":
"index.html",
"pubs.html",
"talks.html",
"about.html"
"about.html",
]
STATIC = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment