Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Fixed share URL, excerpt and Comments #95

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/Post/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ const Post = props => {
<Share post={post} theme={theme} />
<Author note={authornote} theme={theme} />
<NextPrev next={nextPost} prev={prevPost} theme={theme} />
<Comments slug={slug} facebook={facebook} theme={theme} />
{facebook.appId &&
facebook.appId !== "" && <Comments slug={slug} facebook={facebook} theme={theme} />}
</footer>
</React.Fragment>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Post/Share.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const PostShare = props => {
theme
} = props;

const url = config.siteUrl + config.pathPrefix + slug;
const url = config.siteUrl + slug;

const iconSize = 36;
const filter = count => (count > 0 ? count : "");
Expand Down
1 change: 1 addition & 0 deletions src/templates/PostTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const postQuery = graphql`
post: markdownRemark(fields: { slug: { eq: $slug } }) {
id
html
excerpt
fields {
slug
prefix
Expand Down
Loading