aboutsummaryrefslogtreecommitdiffstats
path: root/docs/templates/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/templates/layout.html')
-rw-r--r--docs/templates/layout.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/templates/layout.html b/docs/templates/layout.html
new file mode 100644
index 00000000..681266cc
--- /dev/null
+++ b/docs/templates/layout.html
@@ -0,0 +1,13 @@
+{% extends "!layout.html" %}
+
+{%- if not embedded and docstitle %}
+ {%- set titleprefix = docstitle|e + " - "|safe %}
+{%- else %}
+ {%- set titleprefix = "" %}
+{%- endif %}
+
+{% block htmltitle %}<title>{% if pagename == 'index' %}Django REST Framework{% else %}{{ titleprefix }}{{ title|striptags|e }}{% endif %}</title>{% endblock %}
+{% block extrahead %}
+{{ super() }}
+{% endblock %}
+