Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bryan BRANCOTTE
django-basetheme-bootstrap
Commits
7ab5663b
Commit
7ab5663b
authored
Oct 08, 2020
by
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
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
basetheme_bootstrap/templates/basetheme_bootstrap/base4.html
View file @
7ab5663b
...
...
@@ -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"
...
...
basetheme_bootstrap/templates/basetheme_bootstrap/basePasteur.html
View file @
7ab5663b
...
...
@@ -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"
...
...
setup.py
View file @
7ab5663b
...
...
@@ -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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment