Added base.html.twig
This commit is contained in:
parent
fe13db722b
commit
adf326cbf1
24
source/_layouts/base.html.twig
Normal file
24
source/_layouts/base.html.twig
Normal 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>
|
|
@ -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" %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'default' %}
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body_classes 'page--blog page--blog__post' %}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'default' %}
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body_classes %}page--talks page--talks__talk{% endblock %}
|
||||
|
||||
|
|
Reference in a new issue