aboutsummaryrefslogtreecommitdiffstats
path: root/docs/templates
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-02-01 19:55:57 +0000
committertom christie tom@tomchristie.com2011-02-01 19:55:57 +0000
commit478dc2d0ce1c350dab7de28fbbdad5188f2e3bb5 (patch)
tree2f43fb236fa18b745c34cf3a7dfe20be6a676f4b /docs/templates
parent98b5b2abd8af88271b9f002c4cff878949c08957 (diff)
downloaddjango-rest-framework-478dc2d0ce1c350dab7de28fbbdad5188f2e3bb5.tar.bz2
Fix up doc title & desc, fix repo link
Diffstat (limited to 'docs/templates')
-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 %}
+