Skip to content

Commit

Permalink
Update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lunchbreakdev committed Apr 12, 2021
1 parent c043b41 commit 9227112
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/MetaHead.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export default function MetaHead(props) {
<meta property="og:locale" content="en_US" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:height" content="627" />
<meta property="og:image:alt" content={metaTitle} />
<meta name="twitter:image:alt" content={metaTitle} />

<meta name="twitter:creator" content={`@` + blog.twitter} />
<meta name="twitter:site" content={blog.twitter} />
<meta name="twitter:site" content={`@` + blog.twitter} />
<meta name="twitter:card" content="summary_large_image" />
</Head>
)
Expand Down
2 changes: 1 addition & 1 deletion pages/learn/[category]/[post].js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function Post({ post, category, tags }) {
return (
<article className="py-24 px-wrap relative">
<div className="absolute top-0 left-0 w-full h-full pattern-cross-dots-md text-tan z-0 opacity-30" aria-hidden="true" />
<MetaHead title={`${post.title}`} />
<MetaHead title={`${post.title}`} description={post.excerpt} image={post.thumbnail} type="article" />
<header className="mb-8 relative z-10">
<div className="mx-auto max-w-2xl">
<ScrollAnimation animateIn="fadeInDown" animateOnce={true} delay={300} offset={0}>
Expand Down
7 changes: 6 additions & 1 deletion pages/portfolio/[project].js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ export default function Project({ project, types, windows, images }) {

return (
<article>
<MetaHead title={`${project.title}${blog.seo.sep}Portfolio`} description={project.excerpt} />
<MetaHead
title={`${project.title}${blog.seo.sep}Portfolio`}
description={project.excerpt}
image={project.thumbnail}
type="article"
/>
<HeaderBanner color={project.color} absolute={true}>
<div className="flex flex-col lg:items-center justify-between lg:flex-row">
<div className="flex-1 mb-12 lg:mb-0 lg:mr-12">
Expand Down
Binary file added public/images/social-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9227112

Please sign in to comment.