feat(layout): adds layout page
This commit is contained in:
@@ -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
18
templates/layout.html
Normal 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 %}
|
||||||
|
© Copyright 2010 by <a href="http://domain.invalid/">you</a>.
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user