2022-05-03 01:10:03 -04:00
|
|
|
{{ $url := .Get 0 }}
|
2022-05-02 11:57:46 -04:00
|
|
|
{{ $dataJ := getJSON $url }}
|
|
|
|
|
|
|
|
|
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 class="e-content">
|
2022-05-14 19:19:47 -04:00
|
|
|
<img class="toot-avatar" width=50 src="{{ .account.avatar }}"/>
|
2022-05-08 18:02:35 -04: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 11:57:46 -04:00
|
|
|
{{ .content | safeHTML }}
|
2022-05-14 19:19:47 -04:00
|
|
|
{{ if gt (len .media_attachments) 0 }}
|
|
|
|
<div class="toot-photos">
|
|
|
|
{{ range .media_attachments}}
|
|
|
|
{{ if eq .type "image" }}
|
|
|
|
<img src="{{ .preview_url }}" alt="{{ .description }}"/>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-05-02 11:57:46 -04:00
|
|
|
</div>
|
2022-05-14 19:19:47 -04:00
|
|
|
<div class="toot-social">
|
2022-05-08 18:02:35 -04:00
|
|
|
<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 11:57:46 -04:00
|
|
|
</article>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|