kobel/layouts/partials/components/icon.html

9 lines
236 B
HTML
Raw Permalink Normal View History

2024-01-06 19:44:35 +00:00
<!--
type: string - default: link
text: string (optional)
url: string
-->
<a href="{{ .url }}" rel="{{ .rel }}">
<i class="{{ if .type }} icon-{{ .type }} {{ else }} icon-link {{ end }}"></i>
{{ if .text }} {{ .text }}{{ end }}
</a>