libmedium/templates/img.html

7 lines
253 B
HTML

<. let metadata = p.metadata.as_ref().unwrap(); .>
<figure>
<img
width="<.= metadata.original_width.as_ref().unwrap() .>"
src="<.= crate::V1_API_ROUTES.proxy.get_medium_asset(&metadata.id).>" />
<figcaption><.= p.text .></figcaption>
</figure>