-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continue porting posts over to the new metadata system
- Loading branch information
1 parent
b8de911
commit 17a5a23
Showing
15 changed files
with
73 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,17 @@ | ||
import { ArticleLayout } from '@/components/ArticleLayout' | ||
import { Button } from '@/components/Button' | ||
|
||
import { generateOgUrl } from '@/utils/ogUrl' | ||
import { createMetadata } from '@/utils/createMetadata' | ||
|
||
export const meta = { | ||
export const metadata = createMetadata({ | ||
author: "Zachary Proser", | ||
date: "2022-10-27", | ||
title: "How to securely store secrets in BitWarden CLI and load them into your shell when needed", | ||
description: "A tutorial on how to write and use shell functions to fetch your tokens from the BitWarden CLI with one command. ", | ||
href: "https://blog.gruntwork.io/how-to-securely-store-secrets-in-bitwarden-cli-and-load-them-into-your-zsh-shell-when-needed-f12d4d040df" | ||
} | ||
}) | ||
|
||
export const metadata = { | ||
openGraph: { | ||
title: meta.title, | ||
description: meta.description, | ||
url: "${process.env.NEXT_PUBLIC_SITE_URL}", | ||
siteName: "Zack Proser portfolio", | ||
images: [ | ||
{ | ||
url: `${generateOgUrl(meta)}`, | ||
} | ||
] | ||
} | ||
} | ||
export default (props) => <ArticleLayout metadata={metadata} {...props} /> | ||
|
||
export default (props) => <ArticleLayout meta={meta} {...props} /> | ||
|
||
<Button href={meta.href}>Read the article</Button> | ||
<Button href={metadata.href}>Read the article</Button> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,21 @@ | ||
import { ArticleLayout } from '@/components/ArticleLayout' | ||
import { Button } from '@/components/Button' | ||
|
||
import { generateOgUrl } from '@/utils/ogUrl' | ||
import { createMetadata } from '@/utils/createMetadata' | ||
|
||
export const meta = { | ||
export const metadata = createMetadata({ | ||
author: "Zachary Proser", | ||
date: "2014-01-01", | ||
title: "Building the ultimate portfolio site with Nuxt.js and Netlify.", | ||
description: "A technical deep dive on building a portfolio site that is beautiful, blazing fast and 100% SEO optimized", | ||
href: "https://itnext.io/building-the-ultimate-portfolio-site-with-nuxt-js-and-netlify-beautiful-blazing-fast-100-seod-102913a60cfd?sk=796ec0cdf5ab4325f66a8dde48df1eff" | ||
} | ||
|
||
export const metadata = { | ||
openGraph: { | ||
title: meta.title, | ||
description: meta.description, | ||
url: "${process.env.NEXT_PUBLIC_SITE_URL}", | ||
siteName: "Zack Proser portfolio", | ||
images: [ | ||
{ | ||
url: `${generateOgUrl(meta)}`, | ||
} | ||
] | ||
} | ||
} | ||
|
||
export default (props) => <ArticleLayout meta={meta} {...props} /> | ||
}) | ||
|
||
export default (props) => <ArticleLayout metadata={metadata} {...props} /> | ||
|
||
## Note - this article is pretty old at this point! | ||
|
||
<Button href={meta.href}>Read the article</Button> | ||
<Button href={metadata.href}>Read the article</Button> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.