summary refs log tree commit diff stats
path: root/src/views/layouts/main.njk
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 22:12:48 +0200
committerAlan Pearce2017-06-18 22:13:13 +0200
commit7455233d74ffe056c4a5927c9272516fdc0e5dfc (patch)
tree3cc545702f4c28aa69f885669faa9c00a273d3db /src/views/layouts/main.njk
parent4ce0f287b64d2d55c9bdd31dee418ba405762273 (diff)
downloadhomestead-7455233d74ffe056c4a5927c9272516fdc0e5dfc.tar.lz
homestead-7455233d74ffe056c4a5927c9272516fdc0e5dfc.tar.zst
homestead-7455233d74ffe056c4a5927c9272516fdc0e5dfc.zip
feat: make templates extend common layout
Diffstat (limited to 'src/views/layouts/main.njk')
-rw-r--r--src/views/layouts/main.njk13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/views/layouts/main.njk b/src/views/layouts/main.njk
new file mode 100644
index 0000000..1fe1a93
--- /dev/null
+++ b/src/views/layouts/main.njk
@@ -0,0 +1,13 @@
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8"/>
+    <title>{% block title %}{{ site.title }}{% endblock %}</title>
+  </head>
+  <body>
+    <main>
+      {% block body %}
+      {% endblock %}
+    </main>
+  </body>
+</html>