culinary.kemonine.info/themes/hugo-theme-techdoc/layouts/shortcodes/panel.html
2022-12-03 10:27:03 -05:00

11 lines
328 B
HTML

<div class="panel {{ with .Get "status" }}panel-{{ . }}{{ else }}panel-primary{{ end }}">
{{- with .Get "title" -}}
<div class="panel-header">
<h3>{{ if $.Get "icon" }}<i class="{{ $.Get "icon" }}"></i>&nbsp;{{ end }}{{- htmlUnescape . | markdownify -}}</h3>
</div>
{{- end -}}
<div class="panel-body">
{{.Inner}}
</div>
</div>