Added og image tag
This commit is contained in:
parent c2869d5fef
commit 50cd408578
1 changed files with 10 additions and 2 deletions
| @ -11,9 +11,17 @@ | |||
<meta property="og:site_name" content="{{ .Site.Title }}" /> | ||||
<meta property="og:url" content="{{ .Permalink }}" /> | ||||
| ||||
{{ if .IsPage }} | ||||
<meta property="og:type" content="article" /> | ||||
| ||||
{{ $baseURL := .Site.BaseURL }} | ||||
{{ if .IsPage }} | ||||
| ||||
{{ with .Params.image }} | ||||
<!-- Twitter summary card with large image must be at least 280x150px --> | ||||
<meta name="twitter:card" content="summary_large_image"/> | ||||
<meta name="og:image" content="{{ $baseURL }}{{ . }}"/> | ||||
{{ end }} | ||||
| ||||
<meta property="og:type" content="article" /> | ||||
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" /> | ||||
| ||||
{{ range .Params.tags }} | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue