libmedium/templates/img.html

8 lines
253 B
HTML
Raw Normal View History

<. let metadata = p.metadata.as_ref().unwrap(); .>
2021-11-02 13:39:37 +05:30
<figure>
<img
width="<.= metadata.original_width.as_ref().unwrap() .>"
src="<.= crate::V1_API_ROUTES.proxy.get_medium_asset(&metadata.id).>" />
2021-11-02 13:39:37 +05:30
<figcaption><.= p.text .></figcaption>
</figure>