Commit e5caf48a by bennbollay

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.
parent 9b7341e4
...@@ -144,7 +144,7 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment