mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
less static
This commit is contained in:
parent
6ccb1fe7ec
commit
78ac5bbabb
@ -8,15 +8,22 @@
|
|||||||
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:title" content="{{ .Title }}">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:image" content="icon.png">
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
<meta property="og:width" content="200">
|
<meta property="og:width" content="200">
|
||||||
<meta property="og:height" content="200">
|
<meta property="og:height" content="200">
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta name="twitter:card" content="summary" />
|
<meta name="twitter:card" content="summary" />
|
||||||
<meta name="twitter:site" content="@_jzhao" />
|
|
||||||
<meta name="twitter:title" content="{{ .Title }}" />
|
<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: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">
|
<meta name="twitter:image" content="icon.png">
|
||||||
|
{{ range $data.links }}
|
||||||
|
{{ if strings.Contains .link "twitter.com" }}
|
||||||
|
{{ $twitter_handle := index (split .link "/") (sub (len (split .link "/")) 1) }}
|
||||||
|
<meta name="twitter:site" content="{{ $twitter_handle }}" />
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<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 }}{{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user