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;
|
|
|
|
}
|
|
|
|
.toot .e-content img {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toot .e-content p:first-of-type {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
{{ range $dataJ }}
|
|
|
|
{{ if ne .content "" }}
|
|
|
|
<article class="toot h-entry">
|
|
|
|
<div>
|
|
|
|
<div class="e-content">
|
|
|
|
<img width=50 src="{{ .account.avatar }}"/>
|
|
|
|
{{ .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 05:32:59 +00:00
|
|
|
<span>| Source: <a href="{{ .url }}">{{ .url }}</a></span>
|
2022-05-02 15:57:46 +00:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|