Skip to content

Commit

Permalink
fx: change og:image, change Paragraph prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
sampittko committed Aug 13, 2020
1 parent cd10b46 commit db803fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ module.exports = {
siteMetadata: {
title: "Samuel Pitoňák (@sampittko)",
siteUrl: "https://sampittko.sk",
ogImageUrl:
"https://pbs.twimg.com/profile_images/1255901925079474177/aVyiRhR8_400x400.jpg",
defaultImage: "https://avatars3.githubusercontent.com/u/38221262",
author: {
fullName: "Samuel Pitoňák",
email: "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions src/components/SEO.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SEO = ({
siteMetadata {
title
siteUrl
ogImageUrl
defaultImage
author {
userName
}
Expand All @@ -34,7 +34,7 @@ const SEO = ({
const metaDescription = description;
const metaImage = image
? `${siteMetadata.siteUrl}/${image}`
: siteMetadata.ogImageUrl;
: siteMetadata.defaultImage;
const url = `${siteMetadata.siteUrl}${slug}`;
return (
<Helmet
Expand Down
2 changes: 1 addition & 1 deletion src/components/mdx/Paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Paragraph = ({ children }) => (
);

Paragraph.propTypes = {
children: PropTypes.string.isRequired,
children: PropTypes.object.isRequired,
};

export default Paragraph;

1 comment on commit db803fa

@vercel
Copy link

@vercel vercel bot commented on db803fa Aug 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.