2023-09-26 17:28:04 -04:00
|
|
|
{{- $title := .Get "title" -}}
|
|
|
|
{{- $icon := .Get "icon" -}}
|
|
|
|
{{- $action := .Get "action" -}}
|
2023-09-27 14:20:17 -04:00
|
|
|
{{- $svg := printf `/static/images/features/icons/%s.svg` $icon -}}
|
|
|
|
{{- $match := "<svg (.*)?>(.*)</svg>" -}}
|
|
|
|
{{- $replaceWith := printf `<svg class="feature-icon" ${1}>${2}</svg>` -}}
|
2023-09-26 17:28:04 -04:00
|
|
|
|
2023-09-27 14:20:17 -04:00
|
|
|
<div class="feature-card is-bordered has-text-centered" data-animation="fadeInLeft">
|
2023-09-26 17:28:04 -04:00
|
|
|
<div class="card-title">
|
|
|
|
<h4>{{ $title }}</h4>
|
|
|
|
</div>
|
|
|
|
<div class="card-icon">
|
2023-09-27 14:20:17 -04:00
|
|
|
{{ replaceRE $match $replaceWith (printf $svg | readFile) | safeHTML }}
|
2023-09-26 17:28:04 -04:00
|
|
|
</div>
|
|
|
|
<div class="card-text">
|
|
|
|
{{ .Inner | markdownify }}
|
|
|
|
</div>
|
|
|
|
</div>
|