Skip to content

Commit

Permalink
fix: update README steps
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdjerred committed Jul 2, 2024
1 parent 113d0d9 commit 8726aa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,14 @@ You've probably seen this in action when posting a link on Facebook, Twitter, Sl
```diff
---
+ import { SEO } from "astro-seo";
+ import { getImagePath } from "astro-opengraph-images";
interface Props {
title: string;
}
const { title } = Astro.props;
+const { url, site } = Astro;
+const { url, site } = Astro;
+const openGraphImageUrl = getImagePath({ url, site });
---
Expand Down
5 changes: 3 additions & 2 deletions README.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,15 @@ You've probably seen this in action when posting a link on Facebook, Twitter, Sl

```diff
---
+ import { SEO } from "astro-seo";
+import { SEO } from "astro-seo";
+import { getImagePath } from "astro-opengraph-images";

interface Props {
title: string;
}

const { title } = Astro.props;
+const { url, site } = Astro;
+const { url, site } = Astro;
+const openGraphImageUrl = getImagePath({ url, site });
---

Expand Down

0 comments on commit 8726aa0

Please sign in to comment.