Open Graph Image - Front Matter

How to override default Open Graph Image and set the image displayed when visitors share your pages

Last modified 2025-05-23

ITADS

Allows to customize Open Graph metadata on any page. By default, LibDoc configuration metadata is set as Open Graph Image. You can customize it on any page by entering another image URL into the front matter key ogImageUrl.

Example with a custom Open Graph Image already placed into the /assets directory:

ogImageUrl: https://myprojectdomain.com/assets/custom-open-graph-url.jpg

Learn more about Open Graph.