We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c5833b commit d360267Copy full SHA for d360267
layouts/partials/templates/opengraph.html
@@ -33,9 +33,17 @@
33
<meta property="og:type" content="website">
34
{{- end }}
35
36
-{{- with partial "_funcs/get-page-images" . }}
37
- {{- range . | first 6 }}
38
- <meta property="og:image" content="{{ .Permalink }}">
+{{- if .Params.cover.image -}}
+ {{- if (ne .Params.cover.relative true) }}
+ <meta property="og:image" content="{{ .Params.cover.image | absURL }}">
39
+ {{- else}}
40
+ <meta property="og:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}">
41
+ {{- end}}
42
+{{- else }}
43
+ {{- with partial "_funcs/get-page-images" . }}
44
+ {{- range . | first 6 }}
45
+ <meta property="og:image" content="{{ .Permalink }}">
46
+ {{- end }}
47
48
49
0 commit comments