summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/layouts/exhibit.html2
-rw-r--r--templates/layouts/page.html4
-rw-r--r--templates/partials/related.html35
3 files changed, 39 insertions, 2 deletions
diff --git a/templates/layouts/exhibit.html b/templates/layouts/exhibit.html
index fcc92a4..7a50635 100644
--- a/templates/layouts/exhibit.html
+++ b/templates/layouts/exhibit.html
@@ -53,6 +53,8 @@
53$body$ 53$body$
54 </div> 54 </div>
55 </div> 55 </div>
56
57 $partials/related()$
56 </div> 58 </div>
57</main> 59</main>
58 60
diff --git a/templates/layouts/page.html b/templates/layouts/page.html
index f26c4bc..b1f7835 100644
--- a/templates/layouts/page.html
+++ b/templates/layouts/page.html
@@ -30,8 +30,6 @@ $body$
30 30
31 $if(references)$ 31 $if(references)$
32 <footer class="s-colored-links s-lists"> 32 <footer class="s-colored-links s-lists">
33 <hr />
34
35 <h1>References</h1> 33 <h1>References</h1>
36 <ul> 34 <ul>
37 $for(references)$ 35 $for(references)$
@@ -40,6 +38,8 @@ $body$
40 </ul> 38 </ul>
41 </footer> 39 </footer>
42 $endif$ 40 $endif$
41
42 $partials/related()$
43 </article> 43 </article>
44 44
45 <div class="o-backdrop js-lightbox u-d-none t-dark"> 45 <div class="o-backdrop js-lightbox u-d-none t-dark">
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$