feat(layout): adds layout page

This commit is contained in:
2024-09-22 11:30:48 -03:00
parent f2ad16aee5
commit 54715ab119
2 changed files with 26 additions and 1 deletions

View File

@@ -1 +1,8 @@
{% extends "layout.html" %}
{% block head %}
{{ super() }}
{% block title %}Home{% endblock %}
{% endblock %}
{% block content %}
<p>Hello, World!</p> <p>Hello, World!</p>
{% endblock %}

18
templates/layout.html Normal file
View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block title %}{% endblock %} - Adog a pet</title>
{% endblock %}
</head>
<body>
<div id="content">{% block content %}{% endblock %}</div>
<div id="footer">
{% block footer %}
&copy; Copyright 2010 by <a href="http://domain.invalid/">you</a>.
{% endblock %}
</div>
</body>
</html>