Get a basic blog up and running
[styx.blog] / core / templates / core / base.html
diff --git a/core/templates/core/base.html b/core/templates/core/base.html
new file mode 100644 (file)
index 0000000..ba5ab1f
--- /dev/null
@@ -0,0 +1,39 @@
+<!doctype html>
+
+<html>
+  <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1" />
+
+    <title>{% block title %}{% endblock %}</title>
+
+    <style>
+      {% include 'core/style.css' %}
+    </style>
+  </head>
+
+  <body>
+    <header>
+      <h1>Styx</h1>
+    </header>
+
+    <nav>
+      <a href='{% url "post-list" %}'>Home</a>
+    </nav>
+
+    <main>
+      {% block content %}{% endblock %}
+    </main>
+
+    <footer>
+      <p>&copy; {% now 'Y' %} Styx</p>
+      <section class="licenses">
+        Licenses:
+        <div>
+          <span>Content: <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></span>
+          <span>Code: <a rel="license" href="https://www.gnu.org/licenses/gpl.html">GPL 3.0</a></span>
+        </div>
+      </section>
+    </footer>
+  </body>
+</html>