Pull out base template
[txt.house] / txt_house / templates / index.html
index 8523976..fcd6fe9 100644 (file)
@@ -1,16 +1,9 @@
-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta charset="utf-8"/>
-    <meta name="viewport" content="width=device-width, initial-scale=1"/>
-    <title>txt.house</title>
-  </head>
+{% extends 'base.html' %}
 
-  <body>
-    <form action='create' method='post'>
-      {% csrf_token %}
-      <textarea name='text'></textarea>
-      <input type='submit'></input>
-    </form>
-  </body>
-</html>
+{% block body %}
+<form action='create' method='post'>
+  {% csrf_token %}
+  <textarea name='text'></textarea>
+  <input type='submit'></input>
+</form>
+{% endblock %}