summaryrefslogtreecommitdiffstats
path: root/templates/partials/related.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/partials/related.html')
-rw-r--r--templates/partials/related.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/partials/related.html b/templates/partials/related.html
new file mode 100644
index 0000000..b0d3f61
--- /dev/null
+++ b/templates/partials/related.html
@@ -0,0 +1,35 @@
1$if(related)$
2 <footer>
3 <hr class="u-mt-700" />
4
5 <div class="l-card-list">
6 <header class="l-card-list__header">
7 <h2 class="s-invisible-links u-mt-0">
8 $if(related.url)$
9 <a href="$related.url.rel$">Related</a>
10 $else$
11 Related
12 $endif$
13 </h2>
14 </header>
15 <div class="l-card-list__cards l-card-list__cards--$related.layout.id$">
16 $if(related.layout.is_grid-2)$
17 $related.items:partials/grid_card()$
18 $elseif(related.layout.is_grid-3)$
19 $related.items:partials/grid_card()$
20 $elseif(related.layout.is_gallery-2)$
21 $related.items:partials/gallery_card()$
22 $elseif(related.layout.is_gallery-3)$
23 $related.items:partials/gallery_card()$
24 $else$
25 <div class="u-d-contents u-d-none@sm-lo">
26 $related.items:partials/list_card()$
27 </div>
28 <div class="u-d-contents u-d-none@sm-hi">
29 $related.items:partials/grid_card()$
30 </div>
31 $endif$
32 </div>
33 </div>
34 </footer>
35$endif$