We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c4c20d commit 6650e96Copy full SHA for 6650e96
themes/hugoplate/layouts/partials/components/base-seo.html
@@ -62,7 +62,9 @@
62
{{ end }}
63
64
{{ if or (hasPrefix $imagePath "http") (fileExists (add `static/` (string $imagePath))) }}
65
-<meta name="twitter:image" content="{{ $imagePath | absURL }}" />
66
-<meta property="og:image" content="{{ $imagePath | absURL }}" />
+<meta name="twitter:image" content="{{ $imagePath }}" />
+<meta property="og:image" content="{{ $imagePath }}" />
67
{{ else }}
68
+<meta name="twitter:image" content="{{ if .Params.image }}{{ .Params.image }}{{ else }}https://open-neuromorphic.org/images/og-image.png{{ end }}" />
69
+<meta property="og:image" content="{{ if .Params.image }}{{ .Params.image }}{{ else }}https://open-neuromorphic.org/images/og-image.png{{ end }}" />
70
0 commit comments