diff options
| author | Volpeon <git@volpeon.ink> | 2022-06-12 13:18:46 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-06-12 13:18:46 +0200 |
| commit | 68dc5757b3a395ba89dfcc81103a5fbd31f03b2c (patch) | |
| tree | 1810595c1811cb50fe9a0f6116bf64f29e289d7d /templates/layouts | |
| parent | Fixed list, updated fonts, fixed source wrapping (diff) | |
| download | volpeon.ink-68dc5757b3a395ba89dfcc81103a5fbd31f03b2c.tar.gz volpeon.ink-68dc5757b3a395ba89dfcc81103a5fbd31f03b2c.tar.bz2 volpeon.ink-68dc5757b3a395ba89dfcc81103a5fbd31f03b2c.zip | |
Better list layouts, added 'random' link for Fediring
Diffstat (limited to 'templates/layouts')
| -rw-r--r-- | templates/layouts/categorized_list.html | 10 | ||||
| -rw-r--r-- | templates/layouts/list.html | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index e8466f7..3fabd16 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html | |||
| @@ -30,11 +30,13 @@ $body$ | |||
| 30 | $endif$ | 30 | $endif$ |
| 31 | </header> | 31 | </header> |
| 32 | <div class="l-card-list__cards l-card-list__cards--$it.layout.id$"> | 32 | <div class="l-card-list__cards l-card-list__cards--$it.layout.id$"> |
| 33 | $if(it.layout.is_grid)$ | 33 | $if(it.layout.is_grid-2)$ |
| 34 | $it.items:partials/grid_card()$ | 34 | $it.items:partials/grid_card()$ |
| 35 | $elseif(it.layout.is_small-gallery)$ | 35 | $elseif(it.layout.is_grid-3)$ |
| 36 | $it.items:partials/small_gallery_card()$ | 36 | $it.items:partials/grid_card()$ |
| 37 | $elseif(it.layout.is_gallery)$ | 37 | $elseif(it.layout.is_gallery-2)$ |
| 38 | $it.items:partials/gallery_card()$ | ||
| 39 | $elseif(it.layout.is_gallery-3)$ | ||
| 38 | $it.items:partials/gallery_card()$ | 40 | $it.items:partials/gallery_card()$ |
| 39 | $else$ | 41 | $else$ |
| 40 | $it.items:partials/list_card()$ | 42 | $it.items:partials/list_card()$ |
diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 88102b9..ebbc2d4 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html | |||
| @@ -7,9 +7,13 @@ $body$ | |||
| 7 | 7 | ||
| 8 | <div class="l-card-list"> | 8 | <div class="l-card-list"> |
| 9 | <div class="l-card-list__cards l-card-list__cards--$list_layout.id$"> | 9 | <div class="l-card-list__cards l-card-list__cards--$list_layout.id$"> |
| 10 | $if(list_layout.is_grid)$ | 10 | $if(list_layout.is_grid-2)$ |
| 11 | $list:partials/grid_card()$ | 11 | $list:partials/grid_card()$ |
| 12 | $elseif(list_layout.is_gallery)$ | 12 | $elseif(list_layout.is_grid-3)$ |
| 13 | $list:partials/grid_card()$ | ||
| 14 | $elseif(list_layout.is_gallery-2)$ | ||
| 15 | $list:partials/gallery_card()$ | ||
| 16 | $elseif(list_layout.is_gallery-3)$ | ||
| 13 | $list:partials/gallery_card()$ | 17 | $list:partials/gallery_card()$ |
| 14 | $else$ | 18 | $else$ |
| 15 | $list:partials/list_card()$ | 19 | $list:partials/list_card()$ |
