I've seen that in the VitePress .md
files you can add meta description and keywords like this,
head:
- - meta
- name: description
content: my custom description
But I can't seem to figure out how to add og:title
or og:image
, it seems that the :
throws an error when compiling.
Refer:
So you basically need to do:
Moreover, VitePress supports setting the frontmatter in JSON too. So this should also work: