Intro-to-Jinja-tpl-v2/templates/base.html

25 lines
450 B
HTML
Raw Normal View History

2024-02-13 14:48:42 +00:00
{# templates/base.html #}
2024-02-13 16:45:22 +00:00
{% import "macros.html" as macros %}
2024-02-13 14:48:42 +00:00
<!DOCTYPE html>
<html lang="en">
2024-02-13 15:55:08 +00:00
2024-02-13 14:48:42 +00:00
<head>
<meta charset="utf-8">
<title>{% block title %}{{ title }}{% endblock title %}</title>
2024-02-13 14:48:42 +00:00
</head>
<body>
2024-02-13 15:55:08 +00:00
<header>
{% include "_navigation.html" %}
</header>
{% block content %}
<h1>Welcome to {{ title }}!</h1>
{% endblock content %}
2024-02-13 16:45:22 +00:00
<footer>
{{ macros.light_or_dark_mode("body") }}
</footer>
2024-02-13 14:48:42 +00:00
</body>
</html>