2018-07-01 08:22:28 +00:00
|
|
|
<meta property="og:title" content="{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"/>
|
|
|
|
<meta property="og:url" content="{{ .Permalink }}"/>
|
|
|
|
<meta property="og:site_name" content="{{ .Site.Title }}"/>
|
2018-07-06 12:27:34 +00:00
|
|
|
|
|
|
|
{{ with .Resources.ByType "image" }}
|
|
|
|
{{ range first 5 (sort . "Params.weight") }}
|
2018-07-20 15:27:32 +00:00
|
|
|
<meta property="og:image" content="{{ .Permalink }}"/>
|
2018-07-06 12:27:34 +00:00
|
|
|
{{ end }}
|
2018-07-01 08:22:28 +00:00
|
|
|
{{ else }}
|
2018-07-21 07:53:23 +00:00
|
|
|
{{ with .Site.GetPage "page" "/home" }}
|
2018-07-18 14:58:51 +00:00
|
|
|
{{ range first 5 (.Resources.ByType "image") }}
|
2018-07-20 15:27:32 +00:00
|
|
|
<meta property="og:image" content="{{ .Permalink }}"/>
|
2018-07-18 14:58:51 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2018-07-01 08:22:28 +00:00
|
|
|
{{ end }}
|