mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
* refactor(v2): remove i18n & versioning + cleaner code * totally remove i18n and versioning from plugin
34 lines
822 B
JavaScript
34 lines
822 B
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import Layout from '@theme/Layout'; // eslint-disable-line
|
|
import Post from '../Post';
|
|
|
|
function BlogPost(props) {
|
|
const {content, metadata} = props;
|
|
const BlogPostContents = content;
|
|
return (
|
|
<Layout title={metadata.title}>
|
|
{BlogPostContents && (
|
|
<div className="container margin-vert--xl">
|
|
<div className="row">
|
|
<div className="col col--6 col--offset-3">
|
|
<Post metadata={metadata}>
|
|
<BlogPostContents />
|
|
</Post>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)}
|
|
</Layout>
|
|
);
|
|
}
|
|
|
|
export default BlogPost;
|