mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 11:06:32 +09:00
13 lines
427 B
Plaintext
13 lines
427 B
Plaintext
if theme.OpenGraph.enable
|
|
-
|
|
const coverVal = page.cover || theme.site.siteIcon
|
|
let ogOption = {
|
|
type: is_post() ? 'article' : 'website',
|
|
image: coverVal ? full_url_for(coverVal) : '',
|
|
...theme.OpenGraph.options
|
|
}
|
|
-
|
|
!= open_graph(ogOption)
|
|
meta(name="description" content=page_description())
|
|
else
|
|
meta(name="description" content=page_description()) |