summaryrefslogtreecommitdiffstats
path: root/templates/partials/related.html
blob: 4c8384a00cf28108dbff360d57089dc30773943d (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$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)$
                    $if(related.prev)$
                        $related.prev:partials/grid_card()$
                    $else$
                    <div class="l-card-list__card c-card c-card--outline"></div>
                    $endif$
                    $if(related.next)$
                        $related.next:partials/grid_card()$
                    $else$
                        <div class="l-card-list__card c-card c-card--outline"></div>
                    $endif$
                $else$
                    $if(related.prev)$
                        $related.prev:partials/gallery_card()$
                    $else$
                    <div class="l-card-list__card c-card c-card--outline"></div>
                    $endif$
                    $if(related.next)$
                        $related.next:partials/gallery_card()$
                    $else$
                    <div class="l-card-list__card c-card c-card--outline"></div>
                    $endif$
                $endif$
            </div>
        </div>
    </nav>
$endif$