Add dynamic titles for each page

This commit is contained in:
Augusto Gunsch 2022-03-30 12:24:16 -03:00
parent c4710b70e4
commit 88de73d3cb
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ def page(page):
if os.path.isfile(md): if os.path.isfile(md):
body = read_md(md) body = read_md(md)
return render_template(html, body=body) return render_template(html, body=body, page=page.capitalize())
else: else:
return not_found() return not_found()

View File

@ -2,7 +2,7 @@
<html id="html"> <html id="html">
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>Augusto Gunsch</title> <title>Augusto Gunsch | {{ page }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='stylesheet.css') }}"/> <link rel="stylesheet" href="{{ url_for('static', filename='stylesheet.css') }}"/>
<link rel="stylesheet" href="{{ url_for('static', filename='stylesheet_page.css') }}"/> <link rel="stylesheet" href="{{ url_for('static', filename='stylesheet_page.css') }}"/>
<link rel="icon" href="{{ url_for('static', filename='icon.png') }}"/> <link rel="icon" href="{{ url_for('static', filename='icon.png') }}"/>