From 0ef1eb650e38996b2498e9496a9fef7811d75914 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 10 May 2016 01:56:03 +0100 Subject: [PATCH] Add base.html.twig --- source/_layouts/base.html.twig | 23 +++++++++++++++++++++++ source/_layouts/default.html.twig | 24 +----------------------- 2 files changed, 24 insertions(+), 23 deletions(-) create mode 100644 source/_layouts/base.html.twig diff --git a/source/_layouts/base.html.twig b/source/_layouts/base.html.twig new file mode 100644 index 000000000..1a809662f --- /dev/null +++ b/source/_layouts/base.html.twig @@ -0,0 +1,23 @@ + + + {{ include('head.html.twig') }} + + {{ include('nav.html.twig') }} + +
+
+ {% block content_wrapper %} +
+ {% block content_top %}{% endblock %} + {% block content %}{% endblock %} + {% block content_bottom %}{% endblock %} +
+ {% endblock %} + + {{ include('sidebar.html.twig') }} +
{# .row #} +
{# .container #} + + {{ include('footer.html.twig') }} + + diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 1a809662f..5aedbbc49 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -1,23 +1 @@ - - - {{ include('head.html.twig') }} - - {{ include('nav.html.twig') }} - -
-
- {% block content_wrapper %} -
- {% block content_top %}{% endblock %} - {% block content %}{% endblock %} - {% block content_bottom %}{% endblock %} -
- {% endblock %} - - {{ include('sidebar.html.twig') }} -
{# .row #} -
{# .container #} - - {{ include('footer.html.twig') }} - - +{% extends "base" %}