style toots

This commit is contained in:
Baptiste Lemoine 2020-10-18 18:12:58 +02:00
parent 804d714eea
commit a9f365eb44
2 changed files with 5 additions and 6 deletions

View File

@ -14,7 +14,7 @@ var jsonParsedLikes, jsonParsedOutbox;
* You can filter the export in the following vars
*/
const min_length = 0; // minmum character length of toots to display
const max_toots = 10// maximum length
const max_toots = 20// maximum length
const filterBiggerTootsBeforeSlicing = false; // filter only long toots
const filterOnlyHavingMedias = false; // filter only toots having medias
const displayMedias = true; // display medias in toots

View File

@ -8,17 +8,16 @@ div.container
#{toot_counter = outbox.length}
each oredredItem in outbox
article
div.status.status-public
p.toot_counter= toot_counter-=1
div.status.status-public.flex
p.toot_counter= (toot_counter-=1)
a(href=oredredItem['object'].url)
i.fa.fa-paperplane-o
img.header(src='/avatar.gif')
div.date-published=oredredItem['object'].published
blockquote.published(!=oredredItem['object'].content)
blockquote.pl-6.published(!=oredredItem['object'].content)
if oredredItem['object'].attachment && oredredItem['object'].attachment.length
if(!displayMedias)
sub.font-medium.no-media Medias are not displayed
sub.font-medium.no-media.bg-orange-300.p-2 Medias are not displayed
if(displayMedias)
each media in oredredItem['object'].attachment
include medias.pug