diff options
author | Volpeon <git@volpeon.ink> | 2023-01-10 10:03:23 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-10 10:03:23 +0100 |
commit | 490e4c34c8588bf6095346944e9f025eaa0addaf (patch) | |
tree | ef22b059fddecf7b869ab657d933599daf0b4ef6 /templates | |
parent | Better asset handling; paragraph fix for new Pandoc versions; updated emojis (diff) | |
download | volpeon.ink-490e4c34c8588bf6095346944e9f025eaa0addaf.tar.gz volpeon.ink-490e4c34c8588bf6095346944e9f025eaa0addaf.tar.bz2 volpeon.ink-490e4c34c8588bf6095346944e9f025eaa0addaf.zip |
Improved appearance of related content
Diffstat (limited to 'templates')
-rw-r--r-- | templates/partials/related.html | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/templates/partials/related.html b/templates/partials/related.html index b6e2169..4c8384a 100644 --- a/templates/partials/related.html +++ b/templates/partials/related.html | |||
@@ -14,11 +14,27 @@ $if(related)$ | |||
14 | </header> | 14 | </header> |
15 | <div class="l-card-list__cards l-card-list__cards--$related.layout.id$"> | 15 | <div class="l-card-list__cards l-card-list__cards--$related.layout.id$"> |
16 | $if(related.layout.is_grid-2)$ | 16 | $if(related.layout.is_grid-2)$ |
17 | $related.prev:partials/grid_card()$ | 17 | $if(related.prev)$ |
18 | $related.next:partials/grid_card()$ | 18 | $related.prev:partials/grid_card()$ |
19 | $else$ | ||
20 | <div class="l-card-list__card c-card c-card--outline"></div> | ||
21 | $endif$ | ||
22 | $if(related.next)$ | ||
23 | $related.next:partials/grid_card()$ | ||
24 | $else$ | ||
25 | <div class="l-card-list__card c-card c-card--outline"></div> | ||
26 | $endif$ | ||
19 | $else$ | 27 | $else$ |
20 | $related.prev:partials/gallery_card()$ | 28 | $if(related.prev)$ |
21 | $related.next:partials/gallery_card()$ | 29 | $related.prev:partials/gallery_card()$ |
30 | $else$ | ||
31 | <div class="l-card-list__card c-card c-card--outline"></div> | ||
32 | $endif$ | ||
33 | $if(related.next)$ | ||
34 | $related.next:partials/gallery_card()$ | ||
35 | $else$ | ||
36 | <div class="l-card-list__card c-card c-card--outline"></div> | ||
37 | $endif$ | ||
22 | $endif$ | 38 | $endif$ |
23 | </div> | 39 | </div> |
24 | </div> | 40 | </div> |