2022-05-03 05:10:03 +00:00
|
|
|
{{ $url := .Get 0 }}
|
2022-05-02 15:57:46 +00:00
|
|
|
{{ $dataJ := getJSON $url }}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.toot {
|
|
|
|
margin-bottom: 2rem;
|
2022-05-08 22:02:35 +00:00
|
|
|
padding: 15px;
|
|
|
|
border: 1px solid #656565;
|
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
.toot .date {
|
|
|
|
vertical-align: top;
|
|
|
|
margin-bottom: 0;
|
2022-05-02 15:57:46 +00:00
|
|
|
}
|
|
|
|
.toot .e-content img {
|
|
|
|
display: inline-block;
|
2022-05-08 22:02:35 +00:00
|
|
|
border: 2px solid black;
|
2022-05-02 15:57:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.toot .e-content p:first-of-type {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2022-05-05 17:28:41 +00:00
|
|
|
{{ range sort $dataJ "created_at" "desc" }}
|
2022-05-02 15:57:46 +00:00
|
|
|
{{ if ne .content "" }}
|
|
|
|
<article class="toot h-entry">
|
|
|
|
<div class="e-content">
|
|
|
|
<img width=50 src="{{ .account.avatar }}"/>
|
2022-05-08 22:02:35 +00:00
|
|
|
<p class="date">Tooted on <time class="dt-published" datetime='{{ .created_at }}'>{{ dateFormat "January 2, 2006 15:04" (time .created_at) }}</time></p>
|
2022-05-02 15:57:46 +00:00
|
|
|
{{ .content | safeHTML }}
|
|
|
|
</div>
|
2022-05-08 22:02:35 +00:00
|
|
|
<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>
|
|
|
|
<span>| Source: <a href="{{ .url }}">{{ .url }}</a></span>
|
|
|
|
</div>
|
2022-05-02 15:57:46 +00:00
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|