Commit 7ab5663b authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

put header and footer in block so they can be easily removed

parent 0abd63c8
Pipeline #39204 passed with stage
in 33 seconds
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
</head> </head>
<body class="d-flex flex-column h-100"> <body class="d-flex flex-column h-100">
{% include_if_exists "fork_me.html"|localize_template "basetheme_bootstrap/fork_me.example.html" %} {% include_if_exists "fork_me.html"|localize_template "basetheme_bootstrap/fork_me.example.html" %}
{% block header %}
<header> <header>
<!-- Fixed navbar --> <!-- Fixed navbar -->
<nav class="navbar navbar-expand-md fixed-top navbar-light bg-light"> <nav class="navbar navbar-expand-md fixed-top navbar-light bg-light">
...@@ -50,6 +51,8 @@ ...@@ -50,6 +51,8 @@
</div> </div>
</nav> </nav>
</header> </header>
{% endblock header %}
<!-- Begin page content --> <!-- Begin page content -->
<main role="main" class="flex-shrink-0"> <main role="main" class="flex-shrink-0">
<div class="{% block container-class %}container mb-4{% endblock %}"> <div class="{% block container-class %}container mb-4{% endblock %}">
...@@ -81,6 +84,7 @@ ...@@ -81,6 +84,7 @@
</div> </div>
</main> </main>
{% block footer %}
<footer class="footer mt-auto py-3"> <footer class="footer mt-auto py-3">
<div class="container"> <div class="container">
<span class="text-muted float-right"> <span class="text-muted float-right">
...@@ -88,6 +92,7 @@ ...@@ -88,6 +92,7 @@
</span> </span>
</div> </div>
</footer> </footer>
{% endblock footer %}
</body> </body>
<script <script
src="https://code.jquery.com/jquery-3.3.1.min.js" src="https://code.jquery.com/jquery-3.3.1.min.js"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
{% block extra_css %}{% endblock %} {% block extra_css %}{% endblock %}
</head> </head>
<body class="d-flex flex-column h-100"> <body class="d-flex flex-column h-100">
{% block header %}
{% include_if_exists "fork_me.html"|localize_template "basetheme_bootstrap/fork_me.example.html" %} {% include_if_exists "fork_me.html"|localize_template "basetheme_bootstrap/fork_me.example.html" %}
<header class="main-header fixed-top"> <header class="main-header fixed-top">
<!-- Fixed navbar -->{% block before_nav_content %}{% endblock %} <!-- Fixed navbar -->{% block before_nav_content %}{% endblock %}
...@@ -80,6 +81,8 @@ ...@@ -80,6 +81,8 @@
</div> </div>
</nav> </nav>
</header> </header>
{% endblock header %}
<!-- Begin page content --> <!-- Begin page content -->
<main role="main" class="flex-shrink-0"> <main role="main" class="flex-shrink-0">
<div class="{% block container-class %}container mb-4{% endblock %}"> <div class="{% block container-class %}container mb-4{% endblock %}">
...@@ -113,6 +116,7 @@ ...@@ -113,6 +116,7 @@
</div> </div>
</div> </div>
</main> </main>
{% block footer %}
<footer class="footer mt-auto"> <footer class="footer mt-auto">
<div class="inner-wrap"> <div class="inner-wrap">
...@@ -155,6 +159,7 @@ ...@@ -155,6 +159,7 @@
</div> </div>
</div> </div>
</footer> </footer>
{% endblock footer %}
</body> </body>
<script <script
src="https://code.jquery.com/jquery-3.3.1.min.js" src="https://code.jquery.com/jquery-3.3.1.min.js"
......
...@@ -7,7 +7,7 @@ readme = open('README.rst').read() ...@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup( setup(
name='django-basetheme-bootstrap', name='django-basetheme-bootstrap',
version='0.2.39', version='0.2.40',
description='Django Basetheme Bootstrap', description='Django Basetheme Bootstrap',
long_description=readme, long_description=readme,
author='Bryan Brancotte', author='Bryan Brancotte',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment