Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdjerred committed Jun 30, 2024
1 parent 9fd2133 commit 26dbae8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,26 @@ You've probably seen this in action when posting a link on Facebook, Twitter, Sl

1. Configure the integration in your `astro.config.js` file:

```typescript
import opengraphImages, { presets } from "astro-opengraph-images";
```diff
-import opengraphImages from "astro-opengraph-images";
+import opengraphImages, { presets } from "astro-opengraph-images";

export default defineConfig({
integrations: [
opengraphImages({
options: {
width: 1200,
height: 630,
fonts: [
{
name: "Roboto",
weight: 400,
style: "normal",
data: fs.readFileSync("node_modules/@fontsource/roboto/files/roboto-latin-400-normal.woff"),
},
],
},
render: presets.blackAndWhite,
}),
- opengraphImages()
+ opengraphImages({
+ options: {
+ fonts: [
+ {
+ name: "Roboto",
+ weight: 400,
+ style: "normal",
+ data: fs.readFileSync("node_modules/@fontsource/roboto/files/roboto-latin-400-normal.woff"),
+ },
+ ],
+ },
+ render: presets.blackAndWhite,
+ }),
],
});
```
Expand Down

0 comments on commit 26dbae8

Please sign in to comment.