Skip to content

Commit

Permalink
perf(route/reuters): use downsized pictures from Reuters (#12766)
Browse files Browse the repository at this point in the history
* perf(route/reuters): use downsized pictures from Reuters

* perf(route/reuters): use 1920w pictures from Reuters
  • Loading branch information
lewisjiang committed Jul 8, 2023
1 parent b6e1cf2 commit 28a41d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/v2/reuters/templates/description.art
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ Summary:
{{ each result.related_content.galleries g }}
{{ each g.content_elements e }}
{{ if e.type === 'image' }}
<figure><img src="{{ e.url }}" alt="{{ e.alt_text }}">
<figure><img src="{{ e.renditions.original['1920w'] }}" alt="{{ e.alt_text }}">
<figcaption>{{ e.caption }}</figcaption>
</figure>
{{ /if }}
{{ /each }}
{{ /each }}
{{ each result.related_content.images i }}
{{ if i.type === 'image' }}
<figure><img src="{{ i.url }}" alt="{{ i.alt_text }}">
<figure><img src="{{ i.renditions.original['1920w'] }}" alt="{{ i.alt_text }}">
<figcaption>{{ i.caption }}</figcaption>
</figure>
{{ /if }}
Expand Down

0 comments on commit 28a41d6

Please sign in to comment.