2022-04-23 13:14:42 +00:00
|
|
|
{{ $type := default "note" (.Get "type") }}
|
|
|
|
{{ $icon := .Get "icon" }}
|
|
|
|
{{ $title := default ($type | title) (.Get "title") }}
|
|
|
|
|
|
|
|
|
|
|
|
<blockquote class="gdoc-hint {{ $type | lower }}">
|
|
|
|
<div class="gdoc-hint__title flex align-center">
|
2022-04-28 09:26:45 +00:00
|
|
|
{{- with $icon -}}
|
2022-04-23 13:14:42 +00:00
|
|
|
<svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
|
|
|
|
<span>{{ $title }}</span>
|
2022-04-28 09:26:45 +00:00
|
|
|
{{- else -}}
|
2022-04-23 13:14:42 +00:00
|
|
|
<i class="fa {{ $type | lower }}" title="{{ $title }}"></i>
|
2022-04-28 09:26:45 +00:00
|
|
|
{{- end -}}
|
2022-04-23 13:14:42 +00:00
|
|
|
</div>
|
|
|
|
<div class="gdoc-hint__text">{{ .Inner | $.Page.RenderString }}</div>
|
2020-01-12 14:33:02 +00:00
|
|
|
</blockquote>
|