docusaurus/packages/docusaurus/lib/default-theme/BlogPost/index.js
Endi 373d17ee72
refactor(v2): simplify code by removing wip i18n & translation (#1431)
* refactor(v2): remove i18n & versioning + cleaner code

* totally remove i18n and versioning from plugin
2019-05-02 17:24:47 +07:00

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;