Change the page title to prioritize page content

When many tab's are open (which is necessary for DRF's documentation), it becomes impossible to determine which tab contains which pieces of documentation.  That they are all related is obvious by the use of a common icon, just not the specific page each tab is loaded to.

This change inverts the order of the title to maintain as much useful context as possible on the tabbar.
This commit is contained in:
bennbollay 2013-12-22 16:53:52 -08:00
parent 9b7341e484
commit e5caf48a12

View File

@ -144,7 +144,7 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
if filename == 'index.md': if filename == 'index.md':
main_title = 'Django REST framework - APIs made easy' main_title = 'Django REST framework - APIs made easy'
else: else:
main_title = 'Django REST framework - ' + main_title main_title = main_title + ' - Django REST framework'
if relative_path == 'index.md': if relative_path == 'index.md':
canonical_url = base_url canonical_url = base_url