Skip to content

Commit

Permalink
fixed: added info for html head meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Nov 4, 2024
1 parent 8402ec1 commit a85c6b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ This plugins listens to `/og-image` on any page. It will go through the followin

You can configure the position of the text, and the hero image, even crop it to position it below transparent areas of your template image.

## In your template

Add the following meta tags to your HTML `<head>` tag:

````html
<meta property="og:image" content="<?= $page->url(); ?>/og-image">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="600">
```

## OPTIONS

**Please make sure to prefix all the options with `mauricerenck.ogimage.`**.
Expand Down

0 comments on commit a85c6b2

Please sign in to comment.