Skip to content
Snippets Groups Projects
Commit 9901b2b2 authored by Wade Fagen-Ulmschneider (waf)'s avatar Wade Fagen-Ulmschneider (waf)
Browse files

- Added "Personal" project type as "per_"

parent 4997e22d
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ def construct_navigation():
navigation["experiences"] = []
navigation["projects"] = []
navigation["demos"] = []
navigation["personal"] = []
# Scan all of the directories
for index, rpath in enumerate(os.listdir(basecwd)):
......@@ -84,12 +85,14 @@ def construct_navigation():
project_data["dir"] = rpath
# Attempt to infer the type of project:
if rpath.startswith("project_"):
if rpath.startswith("proj_"):
project_data["type"] = "Project"
elif rpath.startswith("exp_"):
project_data["type"] = "Experience"
elif rpath.startswith("demo_"):
project_data["type"] = "Demo"
elif rpath.startswith("per_"):
project_data["type"] = "Personal"
else:
project_data["type"] = "Unknown"
......@@ -116,6 +119,8 @@ def construct_navigation():
navigation["projects"].append(project_data)
elif project_data["type"] == "Demo":
navigation["demos"].append(project_data)
elif project_data["type"] == "Personal":
navigation["personal"].append(project_data)
else:
logger.warning("%s:Unknown project type: " + project_data["type"] + ". Not added to navigation.", rpath)
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment