summaryrefslogtreecommitdiffstats
path: root/templates/partials
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-08-05 18:06:20 +0200
committerVolpeon <git@volpeon.ink>2022-08-05 18:06:20 +0200
commit6de1ad4cdc8b1fb10cf0a5c61d5ed03893f131c1 (patch)
tree5df16cd2a5d4938016346971a53968c398206624 /templates/partials
parentStricter pruning, don't pre-calculate description field (diff)
downloadvolpeon.ink-6de1ad4cdc8b1fb10cf0a5c61d5ed03893f131c1.tar.gz
volpeon.ink-6de1ad4cdc8b1fb10cf0a5c61d5ed03893f131c1.tar.bz2
volpeon.ink-6de1ad4cdc8b1fb10cf0a5c61d5ed03893f131c1.zip
Show related content
Diffstat (limited to 'templates/partials')
-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$