mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 00:43:52 +08:00
9e8010df8b
Wikimedia provides a thumbnail url for its images, so we should use that for oneboxes instead of the full-size image. Because the size of the onebox image we display is quite small anyways the thumbnail wikimedia provides should suffice and will save bandwidth. See: https://meta.discourse.org/t/264039
4 lines
138 B
Plaintext
4 lines
138 B
Plaintext
{{#image}}<img src="{{thumbnail}}" class="thumbnail">{{/image}}
|
|
|
|
<h3><a href="{{link}}" target="_blank" rel="noopener">{{title}}</a></h3>
|