omegamma/layouts/shortcodes/card.html
2021-09-26 17:39:36 +02:00

17 lines
620 B
HTML

<div class="column col{{ .Get 0 | safeCSS }} vertical-center padding-container">
<div class="card {{ .Get 1 | safeCSS }} {{ .Get 2 | safeCSS }} padding-container text-content">
<h2 class="flex flex-center text-center">
<i class="icon-{{ .Get 3 | safeCSS }} icon-larger2-text"></i>
{{ .Get 4 | safeHTML }}
</h2>
<p>
{{ .Inner | markdownify }}
</p>
<br>
<div class="grid flex-center">&nbsp;
{{ if (.Get 5) }}
{{ partial "links.html" (slice (dict "Icon" (.Get 5) "Title" (.Get 6) "URL" (.Get 7) "Secondary" (.Get 8) "NewTab" (.Get 9) )) }}
{{ end }}
</div>
</div>
</div>