summary refs log tree commit diff stats
path: root/lib/Crater/Routes/Gallery.rakumod
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2022-06-10 23:13:14 +0530
committerAndinus <andinus@nand.sh>2022-06-10 23:16:27 +0530
commitbef200b4669f058ce43ec9c0a3583de7fac558e3 (patch)
tree0b25b603e5ba3f46c2c8396cfcf036923771471e /lib/Crater/Routes/Gallery.rakumod
parent3a443f9380478ab30a2ba7dc173f5e6de880de03 (diff)
downloadcrater-bef200b4669f058ce43ec9c0a3583de7fac558e3.tar.gz
Add alt tags to images, fix flash of unstyled content
- FOUC: On firefox, maybe the '@import' rule caused this.

Also tried out lightGallery.js for lightbox, it doesn't work with text
& anyways, it's buggy with bricks.js & you have to request license key.
Diffstat (limited to 'lib/Crater/Routes/Gallery.rakumod')
-rw-r--r--lib/Crater/Routes/Gallery.rakumod2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Crater/Routes/Gallery.rakumod b/lib/Crater/Routes/Gallery.rakumod
index 04c8d74..cf79cc6 100644
--- a/lib/Crater/Routes/Gallery.rakumod
+++ b/lib/Crater/Routes/Gallery.rakumod
@@ -19,7 +19,7 @@ sub gallery-routes(
             redirect '/login', :see-other;
         }
         get -> *@path {
-            static $gallery.directory, @path;
+            static $gallery.directory.add(".crater/thumbnails"), @path;
         }
     }
 }