diff options
author | Matthew Holt <[email protected]> | 2023-08-03 12:53:47 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2023-08-03 12:53:47 -0600 |
commit | c049bab4580c2e749d5e13d386bf7300bd3e9fe0 (patch) | |
tree | d8552c993b2edb83b529673f32b376bce71a2e82 /modules | |
parent | e2fc08bd34cc17b8cbb6ac364fa1ec41c4c643b9 (diff) | |
download | caddy-c049bab4580c2e749d5e13d386bf7300bd3e9fe0.tar.gz caddy-c049bab4580c2e749d5e13d386bf7300bd3e9fe0.zip |
fileserver: browse: Render SVG images in grid
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddyhttp/fileserver/browse.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/browse.html b/modules/caddyhttp/fileserver/browse.html index db7263c07..aa9f1d01e 100644 --- a/modules/caddyhttp/fileserver/browse.html +++ b/modules/caddyhttp/fileserver/browse.html @@ -11,7 +11,7 @@ <path d="M9 7l4 0"></path> <path d="M9 11l4 0"></path> </svg> - {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic"}} + {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic" ".svg"}} {{- if eq .Tpl.Layout "grid"}} <img loading="lazy" src="{{html .Name}}"> {{- else}} |