mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-23 23:12:59 +03:00
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:
parent
9b7341e484
commit
e5caf48a12
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user