summaryrefslogtreecommitdiffstats
path: root/templates/partials/related.html
blob: 3097866c2ea45074749bd8f02a3870aad275aad0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$if(related)$
    <footer>
        <hr class="u-mt-700" />
        
        <div class="l-card-list">
            <header class="l-card-list__header">
                <h2 class="s-invisible-links u-mt-0">
                    $if(related.url)$
                        <a href="$related.url.rel$">Related</a>
                    $else$
                        Related
                    $endif$
                </h2>
            </header>
            <div class="l-card-list__cards l-card-list__cards--$related.layout.id$">
                $if(related.layout.is_grid-2)$
                    $related.prev:partials/grid_card()$
                    $related.next:partials/grid_card()$
                $else$
                    $related.prev:partials/gallery_card()$
                    $related.next:partials/gallery_card()$
                $endif$
            </div>
        </div>
    </footer>
$endif$