Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ribice/kiss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmir Ribić <ribice@gmail.com>2018-07-29 15:29:03 +0300
committerGitHub <noreply@github.com>2018-07-29 15:29:03 +0300
commitba36599219664afa8669f9bfc105a3984b979558 (patch)
treee299ff96f13285e3418f6f7a9e551aad363942a8
parentb3ec6e34e2ef6944f1a1359f3e124bc1fa0fa364 (diff)
parent2edb53cd4b44525337c3b4580e1c8672ac62e386 (diff)
Merge pull request #44 from ribice/og-image
Fix opengraph image not showing
-rw-r--r--layouts/partials/social/opengraph.html15
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/