Add a base template

This commit is contained in:
Bat
2018-05-09 18:53:12 +01:00
parent 743e6a23d4
commit ae60d5961c
7 changed files with 105 additions and 100 deletions
+14 -15
View File
@@ -1,16 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>New blog</title>
</head>
<body>
<h1>Create a blog</h1>
<form method="post">
<label for="title">Title</label>
<input name="title">
{% extends "base" %}
<input type="submit" value="Create blog"/>
</form>
</body>
</html>
{% block title %}
New blog
{% endblock title %}
{% block content %}
<h1>Create a blog</h1>
<form method="post">
<label for="title">Title</label>
<input name="title">
<input type="submit" value="Create blog"/>
</form>
{% endblock content %}