feat: show post's medium.com url

This commit is contained in:
Aravinth Manivannan 2022-02-09 23:38:04 +05:30
parent 574d14714d
commit 7ad24a2c86
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 10 additions and 1 deletions

View file

@ -117,6 +117,11 @@ iframe {
display: inline-flex;
}
.medium__source {
font-style: italic;
}
.author {
display: inline-flex;
flex-direction: row;

View file

@ -16,7 +16,11 @@
/>
<.= data.creator.name .></a
>
on <.= &date .> &#183; <.= reading_time .> min read
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>
</p>
<article>
<. let paragraphs = &data.content.body_model.paragraphs; .>