mirror of https://github.com/caddyserver/caddy.git
fileserver: browse: Render SVG images in grid
This commit is contained in:
parent
e2fc08bd34
commit
c049bab458
|
@ -11,7 +11,7 @@
|
||||||
<path d="M9 7l4 0"></path>
|
<path d="M9 7l4 0"></path>
|
||||||
<path d="M9 11l4 0"></path>
|
<path d="M9 11l4 0"></path>
|
||||||
</svg>
|
</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"}}
|
{{- if eq .Tpl.Layout "grid"}}
|
||||||
<img loading="lazy" src="{{html .Name}}">
|
<img loading="lazy" src="{{html .Name}}">
|
||||||
{{- else}}
|
{{- else}}
|
||||||
|
|
Loading…
Reference in New Issue