fix-unsplash-image-links
This commit is contained in:
@@ -47,7 +47,7 @@ def response(resp):
|
|||||||
'template': 'images.html',
|
'template': 'images.html',
|
||||||
'url': clean_url(result['links']['html']),
|
'url': clean_url(result['links']['html']),
|
||||||
'thumbnail_src': clean_url(result['urls']['thumb']),
|
'thumbnail_src': clean_url(result['urls']['thumb']),
|
||||||
'img_src': clean_url(result['urls']['raw']),
|
'img_src': clean_url(result['urls']['regular']),
|
||||||
'title': result.get('alt_description') or 'unknown',
|
'title': result.get('alt_description') or 'unknown',
|
||||||
'content': result.get('description') or '',
|
'content': result.get('description') or '',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user