Skip to content

Commit 40c4c29

Browse files
committed
Use cover preview image as og:image
1 parent 4261222 commit 40c4c29

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/handlebars/home.handlebars

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
<meta property="og:type" content="website">
66
<meta property="og:title" content="Home - Dialog">
77
<meta property="og:description" content="Fotoblog von Timm Friebe">
8-
{{#with elements.0}}
9-
{{#with cover.images.0}}
10-
<meta property="og:image" content="{{request.uri.base}}/image/{{cover.slug}}/preview-{{.}}.jpg">
11-
{{/with}}
12-
{{/with}}
138
{{#with cover}}
9+
<meta property="og:image" content="{{request.uri.base}}/image/{{slug}}/preview-{{images.0.name}}.jpg">
1410
<link rel="preload" href="/image/{{slug}}/full-{{images.0.name}}.webp" as="image">
1511
{{/with}}
1612
{{/inline}}

0 commit comments

Comments
 (0)