github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/shortcodes/blocks/feature.html (about) 1 {{ $icon := .Get "icon" | default "fa-lightbulb" }} 2 {{ $url_text := .Get "url_text" }} 3 <div class="col-lg-4 mb-5 mb-lg-0 text-center "> 4 <div class="mb-4 h1"> 5 <i class="{{ if not (or (hasPrefix $icon "fas ") (hasPrefix $icon "fab ")) }}fas {{ end }}{{ $icon }}"></i> 6 </div> 7 <h4 class="h3"> 8 {{ if eq .Page.File.Ext "md" }} 9 {{ .Get "title" | markdownify }} 10 {{ else }} 11 {{ .Get "title" | htmlUnescape | safeHTML }} 12 {{ end }} 13 </h4> 14 <p class="mb-0"> 15 {{ if eq .Page.File.Ext "md" }} 16 {{ .Inner | markdownify }} 17 {{ else }} 18 {{ .Inner | htmlUnescape | safeHTML }} 19 {{ end }} 20 </p> 21 {{ with .Get "url" }}<p><a href="{{ . }}">{{ with $url_text }}{{ $url_text }}{{ else }}{{ T "ui_read_more" }}{{ end }} …</a></p>{{ end }} 22 </div>