updates open graph data
This commit is contained in:
12
README.md
12
README.md
@ -51,4 +51,14 @@ links:
|
||||
- text: "My Twitter"
|
||||
url: "https://twitter.com/example"
|
||||
```
|
||||
This will include the links in the article page. The links will be displayed as a list with the text as the link text and the URL as the link target.
|
||||
This will include the links in the article page. The links will be displayed as a list with the text as the link text and the URL as the link target.
|
||||
|
||||
### Open Graph Image
|
||||
|
||||
You can add Open Graph image (for social media sharing) to an article. To do this, add a `ogImage` field to the front matter of the article. The value should be the path to the image file. For example:
|
||||
|
||||
```yaml
|
||||
ogImage: "/images/my-image.jpg"
|
||||
```
|
||||
|
||||
*Note: The image should be at least 1200x630 pixels for best results. Make sure to place the image in `/static/images/` directory so it can be served correctly. The path should be relative to the static directory.*
|
Reference in New Issue
Block a user