]> git.p6c8.net - pcdenotes.git/blobdiff - notes/templates/note_detail.html
Fixed some things in the templates
[pcdenotes.git] / notes / templates / note_detail.html
index 086295606274241bf60a4154b2abcd8810591e42..22ea0e068aa39df1e0ff6c29d146c2494e2de552 100644 (file)
@@ -1,19 +1,12 @@
+{% extends "note_base.html" %}
 {% load markdownify %}
 {% load markdownify %}
-<!DOCTYPE html>
 
 
-<html lang="de">
-<head>
-  <title>{{ note.title }}</title>
-  <meta charset="UTF-8" />
-  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-</head>
-<body>
+{% block title %}Notes - {{ note.title }}{% endblock %}
 
 
-  <h1>{{ note.title }}</h1>
-
-  <div>{{ note.content|linebreaksbr|markdownify }}</div>
-  
-  <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
-
-</body>
-</html>
+{% block content %}
+  <article>
+    <h2>{{ note.title }}</h2>
+    {{ note.content|linebreaksbr|markdownify }}
+    <p>Date: {{ note.created_at|date:"Y-m-d H:i" }}</p>
+  </article>
+{% endblock %}
\ No newline at end of file

patrick-canterino.de