Files
pivoine.art/layouts/partials/icon.html
T

12 lines
1.2 KiB
HTML
Raw Normal View History

2026-04-08 19:49:15 +02:00
{{- /* Inline SVG icon. Usage: {{ partial "icon.html" "arrow-right" }}
Renders at 1em × 1em, inherits currentColor, aria-hidden.
*/ -}}
{{- $name := . -}}
{{- if eq $name "arrow-right" -}}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:inline-block;vertical-align:-0.1em"><path d="M2 8h12"/><path d="M9 3l5 5-5 5"/></svg>
{{- else if eq $name "arrow-left" -}}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:inline-block;vertical-align:-0.1em"><path d="M14 8H2"/><path d="M7 3L2 8l5 5"/></svg>
{{- else if eq $name "arrow-external" -}}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" style="display:inline-block;vertical-align:-0.1em"><path d="M4 12L12 4"/><path d="M6 4h6v6"/></svg>
{{- end -}}