summaryrefslogtreecommitdiffstats
path: root/templates/partials/related.html
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-08-21 18:33:02 +0200
committerVolpeon <git@volpeon.ink>2022-08-21 18:33:02 +0200
commitbd42fbff628ca5831d7a0f9b18e3466bd6dbe8a5 (patch)
tree7ca3187ed9d6a03799bed780f93920fa546b71ce /templates/partials/related.html
parentShow related content (diff)
downloadvolpeon.ink-bd42fbff628ca5831d7a0f9b18e3466bd6dbe8a5.tar.gz
volpeon.ink-bd42fbff628ca5831d7a0f9b18e3466bd6dbe8a5.tar.bz2
volpeon.ink-bd42fbff628ca5831d7a0f9b18e3466bd6dbe8a5.zip
Don't use random pages for "related"
Diffstat (limited to 'templates/partials/related.html')
-rw-r--r--templates/partials/related.html18
1 files changed, 12 insertions, 6 deletions
diff --git a/templates/partials/related.html b/templates/partials/related.html
index b0d3f61..7d29c7a 100644
--- a/templates/partials/related.html
+++ b/templates/partials/related.html
@@ -14,19 +14,25 @@ $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.items:partials/grid_card()$ 17 $related.prev:partials/grid_card()$
18 $related.next:partials/grid_card()$
18 $elseif(related.layout.is_grid-3)$ 19 $elseif(related.layout.is_grid-3)$
19 $related.items:partials/grid_card()$ 20 $related.prev:partials/grid_card()$
21 $related.next:partials/grid_card()$
20 $elseif(related.layout.is_gallery-2)$ 22 $elseif(related.layout.is_gallery-2)$
21 $related.items:partials/gallery_card()$ 23 $related.prev:partials/gallery_card()$
24 $related.next:partials/gallery_card()$
22 $elseif(related.layout.is_gallery-3)$ 25 $elseif(related.layout.is_gallery-3)$
23 $related.items:partials/gallery_card()$ 26 $related.prev:partials/gallery_card()$
27 $related.next:partials/gallery_card()$
24 $else$ 28 $else$
25 <div class="u-d-contents u-d-none@sm-lo"> 29 <div class="u-d-contents u-d-none@sm-lo">
26 $related.items:partials/list_card()$ 30 $related.prev:partials/list_card()$
31 $related.next:partials/list_card()$
27 </div> 32 </div>
28 <div class="u-d-contents u-d-none@sm-hi"> 33 <div class="u-d-contents u-d-none@sm-hi">
29 $related.items:partials/grid_card()$ 34 $related.prev:partials/grid_card()$
35 $related.next:partials/grid_card()$
30 </div> 36 </div>
31 $endif$ 37 $endif$
32 </div> 38 </div>