{{ $type := .Get "type"}}
{{ $icon := "alert-circle"}}
{{ if eq $type "success" }}
    {{ $icon = "check-circle"}}
{{ else if eq $type "warning" }}
    {{ $icon = "alert-triangle"}}
{{ else if eq $type "danger" }}
    {{ $icon = "alert-octagon"}}
{{ else if eq $type "info" }}
    {{ $icon = "info"}}
{{ end }}

<div class="alert {{ $type }}">
    <span><i data-feather="{{$icon}}"></i></span>
    <span><strong>{{.Inner | markdownify }}</strong></span>
</div>
