diff options
author | Alan Pearce | 2017-06-18 22:12:48 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-18 22:13:13 +0200 |
commit | 7455233d74ffe056c4a5927c9272516fdc0e5dfc (patch) | |
tree | 3cc545702f4c28aa69f885669faa9c00a273d3db /src/views/layouts | |
parent | 4ce0f287b64d2d55c9bdd31dee418ba405762273 (diff) | |
download | homestead-7455233d74ffe056c4a5927c9272516fdc0e5dfc.tar.lz homestead-7455233d74ffe056c4a5927c9272516fdc0e5dfc.tar.zst homestead-7455233d74ffe056c4a5927c9272516fdc0e5dfc.zip |
feat: make templates extend common layout
Diffstat (limited to 'src/views/layouts')
-rw-r--r-- | src/views/layouts/main.njk | 13 |
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> |