summary refs log tree commit diff stats
path: root/templates/gallery.crotmp
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gallery.crotmp')
-rw-r--r--templates/gallery.crotmp36
1 files changed, 15 insertions, 21 deletions
diff --git a/templates/gallery.crotmp b/templates/gallery.crotmp
index 25c55ea..6afef0a 100644
--- a/templates/gallery.crotmp
+++ b/templates/gallery.crotmp
@@ -1,24 +1,18 @@
 <:use 'templates/base.crotmp'>
-<|page(.title)>
-<div id="gallery">
-    <@gallery : $i>
-
-    <?{ $i.<type> eq 'img' }>
-    <img src="<$i.<src>>" loading="lazy">
-    </?>
-
-    <?{ $i.<type> eq 'text' }>
-    <div class="text">
-        <$i.<text>>
+  <|page(.title)>
+    <div id="gallery">
+      <@gallery : $i>
+        <?{ $i.<type> eq 'img' }>
+        <img alt="<$i.<alt>>" 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>
-    </?>
-
-    <?{ $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>
+    <script type="text/javascript" src="/resources/js/bricks.js"></script>
+    <script type="text/javascript" src="/resources/js/gallery.js"></script>
 </|>