libmedium/templates/img.html
realaravinth 698b59fa90
make metadata height and width nullable
post 965f7edd163a caused panic with null values for metadata height and
width
2021-11-01 08:51:54 +05:30

9 lines
247 B
HTML

<. let metadata = p.metadata.as_ref().unwrap(); .>
<!-- TODO deal with layouts
height="<.# metadata.original_height.>"
width="<.# metadata.original_width.>"
-->
<img
src="https://miro.medium.com/<.= metadata.id .>"
alt="<.= p.text .>"
/>