Added base.html.twig

This commit is contained in:
Oliver Davies 2015-07-28 20:20:41 +01:00
parent fe13db722b
commit adf326cbf1
4 changed files with 27 additions and 26 deletions

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<!--[if lte IE 8]> <html class="ie ie8 lt9 lte8 lte7"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9 lte9"> <![endif]-->
<!--[if gt IE 9]> <html> <![endif]-->
<!--[if !IE]><!--> <html> <!--<![endif]-->
{% include 'head' %}
<body class="{% block body_classes %}{% endblock %}">
{% include 'navbar' %}
<div class="container">
<div class="row">
{% block content_wrapper %}
<main class="col-md-10">
{% block content %}{% endblock %}
</main>
{% endblock %}
{% include 'sidebar' %}
</div>{# .row #}
</div>{# .container #}
{% include 'footer' %}
</body>
</html>

View file

@ -1,24 +1 @@
<!DOCTYPE html>
<!--[if lte IE 8]> <html class="ie ie8 lt9 lte8 lte7"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9 lte9"> <![endif]-->
<!--[if gt IE 9]> <html> <![endif]-->
<!--[if !IE]><!--> <html> <!--<![endif]-->
{% include 'head' %}
<body class="{% block body_classes %}{% endblock %}">
{% include 'navbar' %}
<div class="container">
<div class="row">
{% block content_wrapper %}
<main class="col-md-10">
{% block content %}{% endblock %}
</main>
{% endblock %}
{% include 'sidebar' %}
</div>{# .row #}
</div>{# .container #}
{% include 'footer' %}
</body>
</html>
{% extends "base.html.twig" %}

View file

@ -1,4 +1,4 @@
{% extends 'default' %}
{% extends 'base.html.twig' %}
{% block body_classes 'page--blog page--blog__post' %}

View file

@ -1,4 +1,4 @@
{% extends 'default' %}
{% extends 'base.html.twig' %}
{% block body_classes %}page--talks page--talks__talk{% endblock %}