website/layouts/_default/_markup/render-blockquote.html

27 lines
781 B
HTML
Executable file

{{ $emojis := dict "caution" ":exclamation:" "important" ":information_source:"
"note" ":information_source:" "tip" ":bulb:" "warning" ":information_source:"
"todo" ":memo:" "quote" ":speech_balloon:" "default" ":information_source:" }}
{{ if .AlertType }}
<blockquote class="alert alert-{{ .AlertType }}">
<table>
<tr>
<td class="width-min">
{{ transform.Emojify (index $emojis .AlertType) }}
</td>
<td class="width-min">{{.AlertType}}</td>
<td class="width-auto">{{ .AlertTitle}}</td>
</tr>
</table>
</blockquote>
{{ else }}
<blockquote class="alert alert-default">
<table>
<tr>
<td class="width-min">Quote:</td>
</tr>
<tr>
<td class="width-auto">{{ .Text }}</td>
</tr>
</table>
</blockquote>
{{ end }}