2022-05-03 01:10:03 -04:00
|
|
|
{{ $url := .Get 0 }}
|
2022-05-02 11:57:46 -04:00
|
|
|
{{ $dataJ := getJSON $url }}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.toot {
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
}
|
|
|
|
.toot .e-content img {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toot .e-content p:first-of-type {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
2022-05-05 13:28:41 -04:00
|
|
|
{{ range sort $dataJ "created_at" "desc" }}
|
2022-05-02 11:57:46 -04:00
|
|
|
{{ if ne .content "" }}
|
|
|
|
<article class="toot h-entry">
|
|
|
|
<div>
|
|
|
|
<div class="e-content">
|
|
|
|
<img width=50 src="{{ .account.avatar }}"/>
|
2022-05-05 13:24:15 -04:00
|
|
|
<p class="date">Published on <time class="dt-published" datetime='{{ .created_at }}'>{{ dateFormat "January 2, 2006 15:04" (time .created_at) }}</time></p>
|
2022-05-02 11:57:46 -04:00
|
|
|
{{ .content | safeHTML }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class=".toot-social">
|
|
|
|
<span><i class='fas fa-share'></i> {{ .replies_count }} </span>
|
|
|
|
<span><i class='fas fa-retweet'></i> {{ .reblogs_count }} </span>
|
|
|
|
<span><i class='fas fa-star'></i> {{ .favourites_count }} </span>
|
2022-05-03 01:32:59 -04:00
|
|
|
<span>| Source: <a href="{{ .url }}">{{ .url }}</a></span>
|
2022-05-02 11:57:46 -04:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|