summary refs log tree commit diff stats
path: root/templates/gallery.crotmp
blob: 021b3667795d431320c96ea3b6696409afd5e5cf (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
<:use 'templates/base.crotmp'>
<|page(.title)>
<div class="gallery">
    <@gallery : $i>

    <?{ $i.<type> eq 'img' }>
    <img src="<$i.<src>>" loading="lazy">
    </?>

    <?{ $i.<type> eq 'text' }>
    <div class="text">
        <$i.<text>>
    </div>
    </?>

    <?{ $i.<type> eq 'heading' }>
    <h1 class="heading"><$i.<text>></h1>
    </?>

    </@>
</div>
<script type="text/javascript" src="/resources/js/bricks.js"></script>
<script type="text/javascript" src="/resources/js/gallery.js"></script>
</|>