-
-
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.
Merge pull request #345 from zackproser/fix-metadata
Fix metadata
- Loading branch information
Showing
93 changed files
with
547 additions
and
1,632 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
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
Oops, something went wrong.