summaryrefslogtreecommitdiffstats
path: root/templates/partials/related.html
blob: b6e21695ac497dcd8b283f836bf5d06bcf1bcc23 (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)$
    <nav>
        <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>
    </nav>
$endif$