<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
+
+ {{ $baseURL := .Site.BaseURL }}
{{ if .IsPage }}
- <meta property="og:type" content="article" />
+ {{ 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 }}