Skip to content

Commit

Permalink
Merge pull request #12 from helsingborg-stad/fix/indexing-image-size
Browse files Browse the repository at this point in the history
fix: image thumbnail sizes
  • Loading branch information
sebastianthulin authored Feb 6, 2024
2 parents 4f6242a + cf6bce8 commit d3f8cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private static function getPost($post)
'post_date' => strtotime($post->post_date),
'post_date_formatted' => date(get_option('date_format'), strtotime($post->post_date)),
'post_modified' => strtotime($post->post_modified),
'thumbnail' => get_the_post_thumbnail_url($post) ? get_the_post_thumbnail_url($post, 'medium') : '',
'thumbnail' => get_the_post_thumbnail_url($post) ? get_the_post_thumbnail_url($post, [480, 270]) : '',
'tags' => $tags,
'categories' => $categories,
'algolia_timestamp' => current_time("Y-m-d H:i:s"),
Expand Down

0 comments on commit d3f8cb3

Please sign in to comment.