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

(cherry picked from commit 109d1c95e3)
This commit is contained in:
Joe Critchley
2017-05-03 11:05:17 +01:00
committed by Dan Abramov
parent aa1570cf35
commit a32974a2b0
+5 -1
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>