mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00

- Posts, Comments, Users, etc. are always pluralized. - CSS classes are based off component names (PostsTitle -> posts-title)
28 lines
No EOL
747 B
JavaScript
28 lines
No EOL
747 B
JavaScript
import React from 'react';
|
|
|
|
const PostsPage = ({document, currentUser}) => {
|
|
|
|
({PostsCommentsThread, PostsItem, PostsCategories, SocialShare, Vote, PostsStats, HeadTags} = Telescope.components);
|
|
|
|
const post = document;
|
|
const htmlBody = {__html: post.htmlBody};
|
|
|
|
return (
|
|
<div className="posts-page">
|
|
|
|
<HeadTags url={Posts.getLink(post)} title={post.title} image={post.thumbnailUrl} />
|
|
|
|
<PostsItem post={post}/>
|
|
|
|
<div className="posts-page-body" dangerouslySetInnerHTML={htmlBody}></div>
|
|
|
|
{/*<SocialShare url={ Posts.getLink(post) } title={ post.title }/>*/}
|
|
|
|
<PostsCommentsThread document={post} currentUser={currentUser}/>
|
|
|
|
</div>
|
|
)
|
|
};
|
|
|
|
module.exports = PostsPage;
|
|
export default PostsPage; |