2022-08-31 08:15:13 +00:00
|
|
|
{{- $type := default "note" (.Get "type") -}}
|
|
|
|
{{- $icon := .Get "icon" -}}
|
|
|
|
{{- $title := default ($type | title) (.Get "title") }}
|
2022-04-30 12:32:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
<blockquote class="gblog-hint {{ $type | lower }}">
|
|
|
|
<div class="gblog-hint__title flex align-center">
|
|
|
|
{{- with $icon -}}
|
|
|
|
<svg class="gblog-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
|
|
|
|
<span>{{ $title }}</span>
|
|
|
|
{{- else -}}
|
|
|
|
<i class="fa {{ $type | lower }}" title="{{ $title }}"></i>
|
|
|
|
{{- end -}}
|
|
|
|
</div>
|
|
|
|
<div class="gblog-hint__text">{{ .Inner | $.Page.RenderString }}</div>
|
2020-07-06 18:55:32 +00:00
|
|
|
</blockquote>
|