The default value is article or website depending on whether it is a post page or not.
Unintended Rendering
The default value of og:locale is chosen from several settings, as implemented below:
page.lang || page.language || config.language
Although this was written in the documentation, the | in this code was treated as a table separator, resulting in the display being cut off in the middle. I fixed it by escaping |.
Check List
en
Englishru
Russianzh-cn
simplified Chinesezh-tw
traditional Chineseja
JapaneseIncorrect Default Value
The value
blog
specified as the default value forog:type
is incorrect. As per the following implementation:https://github.com/hexojs/hexo/blob/v7.1.1/lib/plugins/helper/open_graph.ts#L82
The default value is
article
orwebsite
depending on whether it is a post page or not.Unintended Rendering
The default value of
og:locale
is chosen from several settings, as implemented below:Although this was written in the documentation, the
|
in this code was treated as a table separator, resulting in the display being cut off in the middle. I fixed it by escaping|
.Before fix:
After fix: