Design work

This commit is contained in:
2025-01-03 23:25:38 +00:00
parent 028103d321
commit 032481d465
10 changed files with 95 additions and 37 deletions

View File

@@ -58,13 +58,13 @@ def projects():
with open(path.join(md_directory, 'categories.json')) as categories_file:
categories = json.load(categories_file)
return render_template('projects.html', articles=articles_to_return, all_categories=categories)
return render_template('projects.html', articles=articles_to_return, all_categories=categories, title='Projects', description='A selection of projects I\'ve been involved in')
@app.route('/projects/category/<category>/')
def category(category):
with open(path.join(md_directory, 'categories.json')) as categories_file:
categories = json.load(categories_file)
print(categories)
the_category = categories.get(category)
if the_category is None: