Skip to content

Commit 6650e96

Browse files
committed
Test updated opengraph tags
1 parent 1c4c20d commit 6650e96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

themes/hugoplate/layouts/partials/components/base-seo.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
{{ end }}
6363

6464
{{ 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 }}" />
65+
<meta name="twitter:image" content="{{ $imagePath }}" />
66+
<meta property="og:image" content="{{ $imagePath }}" />
6767
{{ 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 }}" />
6870
{{ end }}

0 commit comments

Comments
 (0)