forked from realaravinth/libmedium
feat: show post's medium.com url
This commit is contained in:
parent
574d14714d
commit
7ad24a2c86
2 changed files with 10 additions and 1 deletions
|
@ -117,6 +117,11 @@ iframe {
|
|||
display: inline-flex;
|
||||
}
|
||||
|
||||
.medium__source {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
.author {
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
|
|
|
@ -16,7 +16,11 @@
|
|||
/>
|
||||
<.= data.creator.name .></a
|
||||
>
|
||||
on <.= &date .> · <.= reading_time .> min read
|
||||
on <.= &date .> · <.= reading_time .> min read ·
|
||||
<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; .>
|
||||
|
|
Loading…
Reference in a new issue