@samitouri / QOS-React-2 / commits / 109d1c95e3

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

Joe Critchley committed May 2, 2017 at 14:22 UTC 109d1c95e3e3c777a2990ee8ca23f56bbe886440
1 file changed +5 -1
docs/_layouts/default.html
+5 -1
@@ -7,7 +7,11 @@
7 {% assign sectionTitle = 'React' %}
8 {% assign description = 'A JavaScript library for building user interfaces' %}
9 {% endif %}
10 -{% assign title = page.title | append: ' - ' | append: sectionTitle %}
10 +{% if page.id == 'home' %}
11 + {% assign title = sectionTitle | append: ' - ' | append: page.title %}
12 +{% else %}
13 + {% assign title = page.title | append: ' - ' | append: sectionTitle %}
14 +{% endif %}
15 <!DOCTYPE html>
16 <!--[if IE]><![endif]-->
17 <html>