Skip to content

Commit 09b0213

Browse files
author
Emmanouil Konstantinidis
committed
Allow template overrides
1 parent 2204b0b commit 09b0213

File tree

1 file changed

+4
-2
lines changed
  • rest_framework_docs/templates/rest_framework_docs

1 file changed

+4
-2
lines changed

rest_framework_docs/templates/rest_framework_docs/base.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta http-equiv="X-UA-Compatible" content="IE=edge">
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99

10-
<title>DRF Docs</title>
10+
<title>{% block title %}DRF Docs{% endblock %}</title>
1111

1212
<!-- Bootstrap & Flatly -->
1313
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/flatly/bootstrap.min.css" rel="stylesheet">
@@ -41,7 +41,7 @@
4141
<span class="icon-bar"></span>
4242
<span class="icon-bar"></span>
4343
</button>
44-
<a class="navbar-brand" href="http://www.drfdocs.com/">DRF Docs</a>
44+
{% block logo %}<a class="navbar-brand" href="http://www.drfdocs.com/">DRF Docs</a>{% endblock %}
4545
</div>
4646

4747
<!-- Collect the nav links, forms, and other content for toggling -->
@@ -65,6 +65,7 @@ <h3>Document Web APIs made with <a href="http://www.django-rest-framework.org/"
6565

6666
{% block content %}{% endblock %}
6767

68+
{% block footer %}
6869
<div class="footer">
6970
<div class="links">
7071
<a href="http://www.iamemmanouil.com"><i class="fa fa-link"></i></a>
@@ -73,6 +74,7 @@ <h3>Document Web APIs made with <a href="http://www.django-rest-framework.org/"
7374
</div>
7475
Copyright © 2015 Emmanouil Konstantinidis.
7576
</div>
77+
{% endblock %}
7678
</div>
7779

7880
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

0 commit comments

Comments
 (0)