Add dynamic titles for each page
This commit is contained in:
parent
c4710b70e4
commit
88de73d3cb
2
index.py
2
index.py
|
@ -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()
|
||||||
|
|
||||||
|
|
|
@ -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') }}"/>
|
||||||
|
|
Loading…
Reference in New Issue