Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 00:30 UTC
fileserver: browse: Render SVG images in grid
Matthew Holt committed
Aug 3, 2023 at 12:53 UTC
c049bab4580c2e749d5e13d386bf7300bd3e9fe0
1 file changed
+1
-1
modules/caddyhttp/fileserver/browse.html
+1
-1
@@ -11,7 +11,7 @@
11
<path d="M9 7l4 0"></path>
12
<path d="M9 11l4 0"></path>
13
</svg>
14
- {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic"}}
14
+ {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic" ".svg"}}
15
{{- if eq .Tpl.Layout "grid"}}
16
<img loading="lazy" src="{{html .Name}}">
17
{{- else}}