2024-04-08 08:58:39 +02:00
|
|
|
<span class="inline-svg">
|
2021-09-30 17:35:35 +02:00
|
|
|
|
2024-04-08 08:58:39 +02:00
|
|
|
{{ $dict := newScratch }}
|
2021-05-17 20:04:42 +02:00
|
|
|
|
2024-04-09 14:03:09 +02:00
|
|
|
|
2024-04-08 08:58:39 +02:00
|
|
|
{{ if (eq .iconName "docs")}}
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-doc" width="24" height="24"
|
|
|
|
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round"
|
|
|
|
stroke-linejoin="round">
|
2024-03-06 07:22:23 +01:00
|
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
2024-04-08 08:58:39 +02:00
|
|
|
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
|
|
|
|
<path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" />
|
|
|
|
<path d="M5 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z" />
|
|
|
|
<path d="M20 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0" />
|
|
|
|
<path d="M12.5 15a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -3 0v-3a1.5 1.5 0 0 1 1.5 -1.5z" />
|
2024-03-06 07:22:23 +01:00
|
|
|
</svg>
|
2024-04-08 08:58:39 +02:00
|
|
|
{{ else }}
|
2024-03-06 07:22:23 +01:00
|
|
|
{{ if (eq .custom true) }}
|
2024-04-08 08:58:39 +02:00
|
|
|
{{ $dict.Set "svg" (readFile (print "static/tabler-icons/" .iconName ".svg")) }}
|
2024-03-06 07:22:23 +01:00
|
|
|
{{ else }}
|
2024-04-08 08:58:39 +02:00
|
|
|
{{ $dict.Set "svg" (partial (print "tabler-icons/" .iconName ".svg")) }}
|
|
|
|
{{ end }}
|
2024-03-06 07:22:23 +01:00
|
|
|
{{ end }}
|
2021-05-17 20:04:42 +02:00
|
|
|
|
2024-04-08 08:58:39 +02:00
|
|
|
{{ $dict.Get "svg" | safeHTML }}
|
|
|
|
|
2024-04-09 14:03:09 +02:00
|
|
|
</span>
|