Skip to content

Commit

Permalink
Use "route" helper
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 8, 2024
1 parent b5748f5 commit b6848ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/handlebars/journeys.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{{#each journeys}}
<div class="card">
<div class="{{range-rel is.from is.until}} context">{{range is.from is.until format="M Y"}}</div>
<a title="{{title}}" href="/journey/{{slug}}">
<a title="{{title}}" href="{{route this}}">
{{#with preview}}<img alt="{{title}}, {{date meta.dateTime format='d.m.Y H:i'}}" {{#unless (top 3 @index)}}loading="lazy"{{/unless}} src="/image/{{slug}}/thumb-{{name}}.webp">{{else}}<div class="without-preview"></div>{{/with}}
<h3>{{title}}</h3>
</a>
Expand Down

0 comments on commit b6848ae

Please sign in to comment.