mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 14:54:05 -06:00
adding twitter and social image and description preview
This commit is contained in:
parent
dd11d56dd9
commit
6ccb1fe7ec
@ -8,6 +8,16 @@
|
|||||||
name="description"
|
name="description"
|
||||||
content="{{if .IsHome}}{{$data.description | default $.Site.Data.config.description}}{{else}}{{.Summary}}{{end}}"
|
content="{{if .IsHome}}{{$data.description | default $.Site.Data.config.description}}{{else}}{{.Summary}}{{end}}"
|
||||||
/>
|
/>
|
||||||
|
<meta property="og:image" content="https://quartz.jzhao.xyz/icon.png">
|
||||||
|
<meta property="og:width" content="200">
|
||||||
|
<meta property="og:height" content="200">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:site" content="@_jzhao" />
|
||||||
|
<meta name="twitter:title" content="{{ .Title }}" />
|
||||||
|
<meta name="twitter:description" content="{{if .IsHome}}{{$data.description | default $.Site.Data.config.description}}{{else}}{{.Summary}}{{end}}" />
|
||||||
|
<meta name="twitter:image" content="https://quartz.jzhao.xyz/icon.png">
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{{ if .Title }}{{ .Title }}{{ else }}{{ $data.page_title | default $.Site.Data.config.page_title }}{{
|
{{ if .Title }}{{ .Title }}{{ else }}{{ $data.page_title | default $.Site.Data.config.page_title }}{{
|
||||||
end }}
|
end }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user