Skip to content

Commit

Permalink
Simplify preview image
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Sep 29, 2024
1 parent 40c4c29 commit 83a968c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/handlebars/home.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<meta property="og:title" content="Home - Dialog">
<meta property="og:description" content="Fotoblog von Timm Friebe">
{{#with cover}}
<meta property="og:image" content="{{request.uri.base}}/image/{{slug}}/preview-{{images.0.name}}.jpg">
<link rel="preload" href="/image/{{slug}}/full-{{images.0.name}}.webp" as="image">
<meta property="og:image" content="{{request.uri.base}}/image/{{slug}}/preview-{{preview.name}}.jpg">
<link rel="preload" href="/image/{{slug}}/full-{{preview.name}}.webp" as="image">
{{/with}}
{{/inline}}
{{#*inline "main"}}

<!-- About me -->
{{#with cover}}
<div class="cover" style="background-image: url(/image/{{slug}}/full-{{images.0.name}}.webp)">
<div class="cover" style="background-image: url(/image/{{slug}}/full-{{preview.name}}.webp)">
<h1>{{title}}</h1>
</div>
<article class="intro">
Expand Down

0 comments on commit 83a968c

Please sign in to comment.