2022-04-23 15:14:42 +02: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 11:26:45 +02:00
|
|
|
{{- with $icon -}}
|
2022-04-23 15:14:42 +02:00
|
|
|
<svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
|
|
|
|
<span>{{ $title }}</span>
|
2022-04-28 11:26:45 +02:00
|
|
|
{{- else -}}
|
2022-04-23 15:14:42 +02:00
|
|
|
<i class="fa {{ $type | lower }}" title="{{ $title }}"></i>
|
2022-04-28 11:26:45 +02:00
|
|
|
{{- end -}}
|
2022-04-23 15:14:42 +02:00
|
|
|
</div>
|
|
|
|
<div class="gdoc-hint__text">{{ .Inner | $.Page.RenderString }}</div>
|
2020-01-12 15:33:02 +01:00
|
|
|
</blockquote>
|