show reading time

This commit is contained in:
realaravinth
2021-11-02 21:04:02 +05:30
parent 745d97acfd
commit 7fdf255678
4 changed files with 11 additions and 8 deletions

View File

@ -20,7 +20,7 @@
/>
<.= data.creator.name .></a
>
on <.= &date .>
on <.= &date .> &#183; <.= data.reading_time.floor() as usize .> min read
</p>
<article>
<. let paragraphs = data.content.body_model.paragraphs; .>
@ -42,6 +42,9 @@
<h5><.= p.text .></h5>
<.} else if p.type_ == "H6" {.>
<h6><.= p.text .></h6>
<.} else if p.type_ == "IFRAME" {.>
<. let src = &p.iframe.as_ref().unwrap().media_resource.as_ref().unwrap().href; .>
<iframe src="<.= src .>" frameborder="0"></iframe>
<.}.>
<.}.>
</article>