doc/themes/hugo-geekdoc/layouts/shortcodes/hint.html
Felix Niederwanger 2a9c145b75
Update hugo-geekdoc theme to v0.32.4
Update the used version of hugo-geekdoc to 0.32.4
2022-06-29 10:13:52 +02:00

17 lines
556 B
HTML

{{ $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">
{{- with $icon -}}
<svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
<span>{{ $title }}</span>
{{- else -}}
<i class="fa {{ $type | lower }}" title="{{ $title }}"></i>
{{- end -}}
</div>
<div class="gdoc-hint__text">{{ .Inner | $.Page.RenderString }}</div>
</blockquote>