From 88de73d3cb23f5ff2b0a589422af38fb76974665 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Wed, 30 Mar 2022 12:24:16 -0300 Subject: [PATCH] Add dynamic titles for each page --- index.py | 2 +- templates/page_en.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.py b/index.py index db70ae5..7fa11c8 100644 --- a/index.py +++ b/index.py @@ -49,7 +49,7 @@ def page(page): if os.path.isfile(md): body = read_md(md) - return render_template(html, body=body) + return render_template(html, body=body, page=page.capitalize()) else: return not_found() diff --git a/templates/page_en.html b/templates/page_en.html index cf60c06..3a2155d 100644 --- a/templates/page_en.html +++ b/templates/page_en.html @@ -2,7 +2,7 @@ - Augusto Gunsch + Augusto Gunsch | {{ page }}