libmedium/templates/post.html

36 lines
1018 B
HTML
Raw Normal View History

2021-10-31 23:26:15 +05:30
<!DOCTYPE html>
<html lang="en">
<head>
2021-11-07 13:22:10 +05:30
<. include!("./post_meta.html"); .>
2021-10-31 23:26:15 +05:30
</head>
<body>
2022-01-16 13:20:44 +05:30
<. let mut open_list = false ; .>
2021-10-31 23:26:15 +05:30
<main class="container">
2021-11-02 13:40:13 +05:30
<h1><.= data.title .></h1>
2021-10-31 23:26:15 +05:30
<p class="meta">
2021-11-02 13:40:13 +05:30
<a class="author" href="https://medium.com/u/<.= data.creator.id .>" rel="noreferrer">
<img
src="https://miro.medium.com/<.= data.creator.image_id .>"
class="author__photo"
alt="<.= data.creator.name .>"
/>
2021-10-31 23:26:15 +05:30
<.= data.creator.name .></a
>
2022-02-09 23:38:04 +05:30
on <.= &date .> &#183; <.= reading_time .> min read &#183;&nbsp;
<a class="medium__source"
href="https://medium.com/<.= data.creator.id .>/<.= data.unique_slug .>"
rel="noreferrer"> Open post in medium.com</a>
2021-10-31 23:26:15 +05:30
</p>
<article>
<. for (_pindex, p) in paragraphs.iter().enumerate() {.>
<.- p .>
2021-10-31 23:26:15 +05:30
<.}.>
</article>
</main>
</body>
<style>
<. include!("./main.css"); .>
2021-10-31 23:26:15 +05:30
</style>
</html>