|
|
@ -51,7 +51,7 @@ def render_home():
|
|
|
|
meta, content = get_md_contents("home.md")
|
|
|
|
meta, content = get_md_contents("home.md")
|
|
|
|
projects_list = []
|
|
|
|
projects_list = []
|
|
|
|
for project in list_folders("./projects"):
|
|
|
|
for project in list_folders("./projects"):
|
|
|
|
project_info = get_md_contents("documentation.md",
|
|
|
|
project_info = get_md_contents(f"{project}.md",
|
|
|
|
f"./{projects}/{project}")[0]
|
|
|
|
f"./{projects}/{project}")[0]
|
|
|
|
project_date = datetime.strptime(project_info['date'], '%d/%m/%Y')
|
|
|
|
project_date = datetime.strptime(project_info['date'], '%d/%m/%Y')
|
|
|
|
project_info['date'] = datetime.strftime(project_date, '%d %b, %y')
|
|
|
|
project_info['date'] = datetime.strftime(project_date, '%d %b, %y')
|
|
|
@ -116,7 +116,7 @@ def dynamic_page(slug=None):
|
|
|
|
# Single project
|
|
|
|
# Single project
|
|
|
|
@app.route("/projects/<project>/")
|
|
|
|
@app.route("/projects/<project>/")
|
|
|
|
def p_info(project=None):
|
|
|
|
def p_info(project=None):
|
|
|
|
meta, content = get_md_contents("documentation.md",
|
|
|
|
meta, content = get_md_contents(f"{project}.md",
|
|
|
|
f"./{projects}/{project}")
|
|
|
|
f"./{projects}/{project}")
|
|
|
|
template = 'project.html'
|
|
|
|
template = 'project.html'
|
|
|
|
if 'template' in meta:
|
|
|
|
if 'template' in meta:
|
|
|
|