mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-25 01:26:31 -05:00
37 lines
777 B
HTML
37 lines
777 B
HTML
|
{{ $suburl := .Get 0 }}
|
||
|
{{ $url := print .Site.BaseURL $suburl}}
|
||
|
{{ $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>
|
||
|
</div>
|
||
|
</article>
|
||
|
{{ end }}
|
||
|
{{ end }}
|