Skip to content

Commit 4608b71

Browse files
authored
Revert "docs(en): merge reactjs.org into zh-hans (reactjs#228)"
This reverts commit 923843e.
1 parent 923843e commit 4608b71

File tree

9 files changed

+26
-35
lines changed

9 files changed

+26
-35
lines changed

content/community/conferences.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c
1212

1313
## Upcoming Conferences {#upcoming-conferences}
1414

15+
### React Finland 2019 {#react-finland-2019}
16+
April 24-26 in Helsinki, Finland
17+
18+
[Website](https://react-finland.fi/) - [Twitter](https://twitter.com/ReactFinland)
19+
20+
### ReactJS Girls Conference {#reactjs-girls-conference}
21+
May 3, 2019 in London, UK
22+
23+
[Website](https://reactjsgirls.com/) - [Twitter](https://twitter.com/reactjsgirls)
24+
25+
### <React.NotAConf /> 2019 {#reactnotaconf--2019}
26+
May 11 in Sofia, Bulgaria
27+
28+
[Website](http://react-not-a-conf.com/) - [Twitter](https://twitter.com/reactnotaconf) - [Facebook](https://www.facebook.com/events/780891358936156)
29+
1530
### ReactEurope 2019 {#reacteurope-2019}
1631
May 23-24, 2019 in Paris, France
1732

@@ -370,18 +385,3 @@ April 4-5, 2019 in Kraków, Poland
370385
April 12, 2019 in Amsterdam, The Netherlands
371386

372387
[Website](https://react.amsterdam) - [Twitter](https://twitter.com/reactamsterdam) - [Facebook](https://www.facebook.com/reactamsterdam) - [Videos](https://youtube.com/c/ReactConferences)
373-
374-
### React Finland 2019 {#react-finland-2019}
375-
April 24-26 in Helsinki, Finland
376-
377-
[Website](https://react-finland.fi/) - [Twitter](https://twitter.com/ReactFinland)
378-
379-
### ReactJS Girls Conference {#reactjs-girls-conference}
380-
May 3, 2019 in London, UK
381-
382-
[Website](https://reactjsgirls.com/) - [Twitter](https://twitter.com/reactjsgirls)
383-
384-
### <React.NotAConf /> 2019 {#reactnotaconf--2019}
385-
May 11 in Sofia, Bulgaria
386-
387-
[Website](http://react-not-a-conf.com/) - [Twitter](https://twitter.com/reactnotaconf) - [Facebook](https://www.facebook.com/events/780891358936156)

src/components/MarkdownPage/MarkdownPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import TitleAndMetaTags from 'components/TitleAndMetaTags';
1515
import findSectionForPath from 'utils/findSectionForPath';
1616
import toCommaSeparatedList from 'utils/toCommaSeparatedList';
1717
import {sharedStyles} from 'theme';
18-
import createCanonicalUrl from 'utils/createCanonicalUrl';
18+
import createOgUrl from 'utils/createOgUrl';
1919

2020
import type {Node} from 'types';
2121

@@ -74,7 +74,7 @@ const MarkdownPage = ({
7474
}}>
7575
<TitleAndMetaTags
7676
ogDescription={ogDescription}
77-
canonicalUrl={createCanonicalUrl(markdownRemark.fields.slug)}
77+
ogUrl={createOgUrl(markdownRemark.fields.slug)}
7878
title={`${titlePrefix}${titlePostfix}`}
7979
/>
8080
<div css={{flex: '1 0 auto'}}>

src/components/TitleAndMetaTags/TitleAndMetaTags.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,21 @@ const defaultDescription = 'A JavaScript library for building user interfaces';
1313
type Props = {
1414
title: string,
1515
ogDescription: string,
16-
canonicalUrl: string,
16+
ogUrl: string,
1717
};
1818

19-
const TitleAndMetaTags = ({title, ogDescription, canonicalUrl}: Props) => {
19+
const TitleAndMetaTags = ({title, ogDescription, ogUrl}: Props) => {
2020
return (
2121
<Helmet title={title}>
2222
<meta property="og:title" content={title} />
2323
<meta property="og:type" content="website" />
24-
{canonicalUrl && <meta property="og:url" content={canonicalUrl} />}
24+
{ogUrl && <meta property="og:url" content={ogUrl} />}
2525
<meta property="og:image" content="/logo-og.png" />
2626
<meta
2727
property="og:description"
2828
content={ogDescription || defaultDescription}
2929
/>
3030
<meta property="fb:app_id" content="623268441017527" />
31-
{canonicalUrl && <link rel="canonical" href={canonicalUrl} />}
3231
</Helmet>
3332
);
3433
};

src/pages/acknowledgements.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Acknowlegements = ({data, location}) => (
2121
<div css={sharedStyles.articleLayout.content}>
2222
<Header>Acknowledgements</Header>
2323
<TitleAndMetaTags
24-
canonicalUrl={`${urlRoot}/acknowledgements.html`}
24+
ogUrl={`${urlRoot}/acknowledgements.html`}
2525
title="React - Acknowledgements"
2626
/>
2727

src/pages/blog/all.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const AllBlogPosts = ({data, location}: Props) => (
3030
<div css={sharedStyles.articleLayout.content}>
3131
<Header>All Posts</Header>
3232
<TitleAndMetaTags
33-
canonicalUrl={`${urlRoot}/blog/all.html`}
33+
ogUrl={`${urlRoot}/blog/all.html`}
3434
title="React - All Posts"
3535
/>
3636
<ul

src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import TitleAndMetaTags from 'components/TitleAndMetaTags';
1515
import Layout from 'components/Layout';
1616
import {colors, media, sharedStyles} from 'theme';
1717
import loadScript from 'utils/loadScript';
18-
import createCanonicalUrl from 'utils/createCanonicalUrl';
18+
import createOgUrl from 'utils/createOgUrl';
1919
import {babelURL} from 'site-constants';
2020
import logoWhiteSvg from 'icons/logo-white.svg';
2121

@@ -51,7 +51,7 @@ class Home extends Component {
5151
<Layout location={location}>
5252
<TitleAndMetaTags
5353
title="React &ndash; 用于构建用户界面的 JavaScript 库"
54-
canonicalUrl={createCanonicalUrl('/')}
54+
ogUrl={createOgUrl('index.html')}
5555
/>
5656
<div css={{width: '100%'}}>
5757
<header

src/pages/languages.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import Container from 'components/Container';
1010
import Header from 'components/Header';
1111
import TitleAndMetaTags from 'components/TitleAndMetaTags';
1212
import React from 'react';
13-
import {urlRoot} from 'site-constants';
1413
import {media, sharedStyles} from 'theme';
1514

1615
// $FlowFixMe This is a valid path
@@ -48,10 +47,7 @@ const Languages = ({location}: Props) => (
4847
<div css={sharedStyles.articleLayout.container}>
4948
<div css={sharedStyles.articleLayout.content}>
5049
<Header>多语言</Header>
51-
<TitleAndMetaTags
52-
canonicalUrl={`${urlRoot}/languages/`}
53-
title="React - Languages"
54-
/>
50+
<TitleAndMetaTags title="React - Languages" />
5551

5652
<div css={sharedStyles.markdown}>
5753
<p>

src/pages/versions.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import Container from 'components/Container';
1010
import Header from 'components/Header';
1111
import TitleAndMetaTags from 'components/TitleAndMetaTags';
1212
import React from 'react';
13-
import {urlRoot} from 'site-constants';
1413
import {sharedStyles} from 'theme';
1514

1615
// $FlowFixMe This is a valid path
@@ -26,10 +25,7 @@ const Versions = ({location}: Props) => (
2625
<div css={sharedStyles.articleLayout.container}>
2726
<div css={sharedStyles.articleLayout.content}>
2827
<Header>React 版本</Header>
29-
<TitleAndMetaTags
30-
canonicalUrl={`${urlRoot}/versions/`}
31-
title="React - Versions"
32-
/>
28+
<TitleAndMetaTags title="React - Versions" />
3329
<div css={sharedStyles.markdown}>
3430
<p>
3531
<a

0 commit comments

Comments
 (0)