mirror of https://github.com/onweru/compose.git

weru
06.07.2020 89a1fd5dee1d5620b0458276ad44aea714e6939a
layouts/shortcodes/button.html
@@ -10,9 +10,9 @@
  {{- $label = index $details 0 }}
  {{- $modifier = printf "button_%s" (trim (index $details 1) " ") }}
{{- end -}}
<a href = '{{ $link }}' class = 'button {{ $modifier }}'>
<a href="{{ $link }}" class="button {{ $modifier }}">
  {{- with $icon -}}
  <img src="/images/{{ . }}" alt="icon">
  <img src="/images/{{ . }}" alt="icon">
  {{- end }}
  {{- $label -}}
</a>