Add og:image tag

This commit is contained in:
Keichi Takahashi 2015-04-02 22:00:47 +09:00
parent cd24fc9c1b
commit b867f968fa
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@
<meta property="og:title" content="{{ if ne .Url "/" }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{ with .Params.images }}{{ range first 5 . }}
<meta property="og:image" content="{{ . }}" />
{{ end }}{{ end }}
{{ if .IsPage }}
<meta property="og:type" content="article" />
{{ with .Site.Params.facebook }}