[Docs] Show the name 'React' first in the homepage's <title> (#9582)

This commit is contained in:
Joe Critchley 2017-05-02 14:22:24 +01:00 committed by Dan Abramov
parent 45dbcfb67d
commit 109d1c95e3
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@
{% assign sectionTitle = 'React' %}
{% assign description = 'A JavaScript library for building user interfaces' %}
{% endif %}
{% assign title = page.title | append: ' - ' | append: sectionTitle %}
{% if page.id == 'home' %}
{% assign title = sectionTitle | append: ' - ' | append: page.title %}
{% else %}
{% assign title = page.title | append: ' - ' | append: sectionTitle %}
{% endif %}
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>