diff options
author | Andinus <andinus@nand.sh> | 2022-06-09 21:12:03 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2022-06-09 21:12:03 +0530 |
commit | 2085b4cac3a86d59360531d48251c8ab39dec0dd (patch) | |
tree | 53cabc820312da2abff2bbb9b44132b61302cad1 /templates/gallery.crotmp | |
parent | 48df36de5aa962b32d3313d6a9d2ace6a5fdac11 (diff) | |
download | crater-2085b4cac3a86d59360531d48251c8ab39dec0dd.tar.gz |
Initial Gallery version
- Handles login, logout, simple directories.
Diffstat (limited to 'templates/gallery.crotmp')
-rw-r--r-- | templates/gallery.crotmp | 22 |
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> +</|> |