diff options
author | Emir Ribić <ribice@gmail.com> | 2018-07-29 15:29:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-29 15:29:03 +0300 |
commit | ba36599219664afa8669f9bfc105a3984b979558 (patch) | |
tree | e299ff96f13285e3418f6f7a9e551aad363942a8 | |
parent | b3ec6e34e2ef6944f1a1359f3e124bc1fa0fa364 (diff) | |
parent | 2edb53cd4b44525337c3b4580e1c8672ac62e386 (diff) |
Merge pull request #44 from ribice/og-image
Fix opengraph image not showing
-rw-r--r-- | layouts/partials/social/opengraph.html | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/layouts/partials/social/opengraph.html b/layouts/partials/social/opengraph.html index f4d4d03..aeba122 100644 --- a/layouts/partials/social/opengraph.html +++ b/layouts/partials/social/opengraph.html @@ -10,21 +10,8 @@ {{- end -}} '> -{{- with .Params.Cover -}} - {{- $type := ( printf "%T" . ) -}} - {{- $isMap := ( not ( eq $type "string" ) ) -}} - <meta property='og:image' content=' - {{- if $isMap -}} - {{- .image | absURL -}} - {{- else -}} - {{- . | absURL -}} - {{- end -}}'> -{{- end -}} - -{{- with .Params.images -}} - {{- range first 5 . -}} +{{- with .Params.image -}} <meta property='og:image' content='{{ . | absURL }}'> - {{- end -}} {{- else -}} {{- with .Site.Params.Social.email -}} <meta property='og:image' content='https://www.gravatar.com/avatar/ |