[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 ef943dd4cc
commit 5f10cd25c2

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>