compose-theme/layouts/shortcodes/icon.html

7 lines
204 B
HTML
Raw Normal View History

2024-07-26 17:08:59 +02:00
{{- $src := .Get 0 }}
{{- $alt := .Get 1 }}
{{- $modifier := .Get 2 -}}
<figure {{ with $modifier }}class="icon_{{ . }}"{{ end }}>
<img src="/images/{{ $src }}" alt="{{ $alt }}" class="icon">
</figure>