<. include!("./post_meta.html"); .> <. let mut open_list = false ; .>

<.= data.title .>

<.= data.creator.name .> <.= data.creator.name .> on <.= &date .> · <.= reading_time .> min read ·  Open post in medium.com

<. let paragraphs = &data.content.body_model.paragraphs; .> <. for (pindex, p) in paragraphs.iter().enumerate() {.> <. if open_list && p.type_ != "OLI" { .> <. } .> <. if pindex == 0 && p.type_ == "H3" {.> <. continue; .> <.}.> <. if p.type_ == "IMG" {.> <. include!("./img.html"); .> <.} else if p.type_ == "P" {.>

<. include!("./_markup.html"); .>

<.} else if p.type_ == "BQ" {.>
<. include!("./_markup.html"); .>
<.} else if p.type_ == "H2" {.>

<.= p.text .>

<.} else if p.type_ == "H3" {.>

<.= p.text .>

<.} else if p.type_ == "H4" {.>

<.= p.text .>

<.} else if p.type_ == "H5" {.>
<.= p.text .>
<.} else if p.type_ == "H6" {.>
<.= p.text .>
<.} else if p.type_ == "IFRAME" {.> <. let src = &p.iframe.as_ref().unwrap().media_resource.as_ref().unwrap().href; .> <. if src.contains("gist.github.com"){.> <. include!("./gist_insert.html"); .> <.} else {.> <.}.> <.} else if p.type_ == "OLI" {.> <. if !open_list { .> <. open_list = true;.>
    <. } .>
  1. <.= p.text .>
  2. <.} else {.>

    <. include!("./_markup.html"); .>

    From LibMedium: LibMedium is built by reverse engineering the Meduim's internal API. This post contains markup(formatting rules) that we are unaware of. Please report this URL on our bug tracker so that we can improve page rendering.
    Alternatively, you can also email me at realaravinth at batsense dot net!

    <.}.> <.}.>