mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 01:13:58 +08:00

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>
|