From bd42fbff628ca5831d7a0f9b18e3466bd6dbe8a5 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 21 Aug 2022 18:33:02 +0200 Subject: Don't use random pages for "related" --- templates/partials/related.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'templates/partials/related.html') 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)$
$if(related.layout.is_grid-2)$ - $related.items:partials/grid_card()$ + $related.prev:partials/grid_card()$ + $related.next:partials/grid_card()$ $elseif(related.layout.is_grid-3)$ - $related.items:partials/grid_card()$ + $related.prev:partials/grid_card()$ + $related.next:partials/grid_card()$ $elseif(related.layout.is_gallery-2)$ - $related.items:partials/gallery_card()$ + $related.prev:partials/gallery_card()$ + $related.next:partials/gallery_card()$ $elseif(related.layout.is_gallery-3)$ - $related.items:partials/gallery_card()$ + $related.prev:partials/gallery_card()$ + $related.next:partials/gallery_card()$ $else$
- $related.items:partials/list_card()$ + $related.prev:partials/list_card()$ + $related.next:partials/list_card()$
- $related.items:partials/grid_card()$ + $related.prev:partials/grid_card()$ + $related.next:partials/grid_card()$
$endif$
-- cgit v1.2.3-70-g09d2