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.crotmp22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/gallery.crotmp b/templates/gallery.crotmp
new file mode 100644
index 0000000..a47804f
--- /dev/null
+++ b/templates/gallery.crotmp
@@ -0,0 +1,22 @@
+<:use 'templates/base.crotmp'>
+<|page(.title)>
+<div class="gallery">
+    <@gallery : $i>
+
+    <?{ $i.<type> eq 'img' }>
+    <img src="<$i.<src>>">
+    </?>
+
+    <?{ $i.<type> eq 'text' }>
+    <div class="text">
+        <$i.<text>>
+    </div>
+    </?>
+
+    <?{ $i.<type> eq 'heading' }>
+    <h1 class="heading"><$i.<text>></h1>
+    </?>
+
+    </@>
+</div>
+</|>