mirror of
https://github.com/sartography/spiffworkflow_website.git
synced 2025-02-23 21:08:18 +00:00
20 lines
661 B
HTML
20 lines
661 B
HTML
{{- $title := .Get "title" -}}
|
|
{{- $icon := .Get "icon" -}}
|
|
{{- $action := .Get "action" -}}
|
|
{{- $class := .Get "class" | default "" -}}
|
|
{{- $svg := printf `/static/images/features/icons/%s.svg` $icon -}}
|
|
{{- $match := "<svg (.*)?>(.*)</svg>" -}}
|
|
{{- $replaceWith := printf `<svg class="feature-icon" ${1}>${2}</svg>` -}}
|
|
|
|
<div class="feature-card is-bordered has-text-centered {{$class}}" data-animation="fadeInLeft">
|
|
<div class="card-title">
|
|
<h4>{{ $title }}</h4>
|
|
</div>
|
|
<div class="card-icon">
|
|
{{ replaceRE $match $replaceWith (printf $svg | readFile) | safeHTML }}
|
|
</div>
|
|
<div class="card-text">
|
|
{{ .Inner | markdownify }}
|
|
</div>
|
|
</div>
|