You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
483 B
HTML
20 lines
483 B
HTML
{{ $class := .Get 0 | default (.Get "class") }}
|
|
{{ $name := .Get "name" }}
|
|
{{ $url := .Get "url" }}
|
|
|
|
{{ if not $class }}
|
|
{{ errorf "layouts/shortcodes/paige/icon.html: no class" }}
|
|
{{ end }}
|
|
|
|
<span class="paige-icon">
|
|
{{ with $url }}
|
|
<a href="{{ . }}" {{ with $name }} title="{{ . }}" {{ end }}>
|
|
{{ end }}
|
|
|
|
<i class="{{ $class }}">{{ with $name }}<span class="visually-hidden">{{ . }}</span>{{ end }}</i>
|
|
|
|
{{ if $url }}
|
|
</a>
|
|
{{ end }}
|
|
</span>
|