Created new toots layout

This commit is contained in:
Brandon Rozek 2022-05-14 22:56:35 -04:00
parent 440c6a7db4
commit adf2a4c4d2
5 changed files with 105 additions and 28 deletions

View file

@ -1,34 +1,6 @@
{{ $url := .Get 0 }}
{{ $dataJ := getJSON $url }}
<style>
.toot {
margin-bottom: 2rem;
padding: 15px;
border: 1px solid #656565;
border-radius: 10px;
}
.toot .date {
vertical-align: top;
margin-bottom: 0;
}
.toot-avatar { display: inline-block; }
.toot .e-content img { border: 2px solid black; }
.toot .e-content p:first-of-type {
display: inline-block;
}
.toot-photos {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
main .e-content .toot-photos img {
width: 100%;
max-width: 300px;
}
.toot-social { margin-top: 1rem; }
</style>
{{ range sort $dataJ "created_at" "desc" }}
{{ if ne .content "" }}

View file

@ -0,0 +1 @@
{{ .Inner }}