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 @@
</head>
<body class="d-flex flex-column h-100">
{% include_if_exists "fork_me.html"|localize_template "basetheme_bootstrap/fork_me.example.html" %}
{% block header %}
<header>
<!-- Fixed navbar -->
<nav class="navbar navbar-expand-md fixed-top navbar-light bg-light">
......@@ -50,6 +51,8 @@
</div>
</nav>
</header>
{% endblock header %}
<!-- Begin page content -->
<main role="main" class="flex-shrink-0">
<div class="{% block container-class %}container mb-4{% endblock %}">
......@@ -81,6 +84,7 @@
</div>
</main>
{% block footer %}
<footer class="footer mt-auto py-3">
<div class="container">
<span class="text-muted float-right">
......@@ -88,6 +92,7 @@
</span>
</div>
</footer>
{% endblock footer %}
</body>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
......
......@@ -24,6 +24,7 @@
{% block extra_css %}{% endblock %}
</head>
<body class="d-flex flex-column h-100">
{% block header %}
{% include_if_exists "fork_me.html"|localize_template "basetheme_bootstrap/fork_me.example.html" %}
<header class="main-header fixed-top">
<!-- Fixed navbar -->{% block before_nav_content %}{% endblock %}
......@@ -80,6 +81,8 @@
</div>
</nav>
</header>
{% endblock header %}
<!-- Begin page content -->
<main role="main" class="flex-shrink-0">
<div class="{% block container-class %}container mb-4{% endblock %}">
......@@ -113,6 +116,7 @@
</div>
</div>
</main>
{% block footer %}
<footer class="footer mt-auto">
<div class="inner-wrap">
......@@ -155,6 +159,7 @@
</div>
</div>
</footer>
{% endblock footer %}
</body>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
......
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup(
name='django-basetheme-bootstrap',
version='0.2.39',
version='0.2.40',
description='Django Basetheme Bootstrap',
long_description=readme,
author='Bryan Brancotte',
......
Markdown is supported
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