mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
[Docs] Show the name 'React' first in the homepage's <title> (#9582)
This commit is contained in:
committed by
Dan Abramov
parent
ef943dd4cc
commit
5f10cd25c2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user