2023-01-01 21:12:58 +08:00
|
|
|
{{ if .Site.Params.openGraph.enable }}
|
2022-05-31 21:50:35 +08:00
|
|
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
|
|
|
<meta property="og:title" content="{{ .Title | default .Site.Title }}" />
|
|
|
|
<meta property="og:description" content="{{ .Description | default .Site.Params.Description }}" />
|
|
|
|
<meta property="og:image" content="{{ .Scratch.Get "metaImg" }}" />
|
|
|
|
<meta property="og:image:width" content="312" />
|
|
|
|
<meta property="og:image:height" content="312" />
|
|
|
|
<meta property="og:image:type" content="image/jpeg/png/svg/jpg" />
|
|
|
|
<meta property="og:url" content="{{ .Permalink }}"/>
|
2022-06-05 21:35:40 +08:00
|
|
|
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
2022-06-08 14:51:30 +08:00
|
|
|
<meta property="og:locale" content="{{ .Site.LanguageCode }}"/>
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ if .IsPage }}
|
2022-06-03 22:37:33 +08:00
|
|
|
<meta property="article:author" content="{{ .Params.Author | default .Site.Params.Author }}" />
|
2022-06-08 14:51:30 +08:00
|
|
|
<meta property="article:published_time" content="{{ .Date }}" />
|
2022-05-31 21:50:35 +08:00
|
|
|
<meta property="article:modified_time" content="{{ .Lastmod }}" />
|
2023-01-01 21:12:58 +08:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|