github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/layouts/shortcodes/hint.html (about)

     1  {{ $type := default "note" (.Get "type") }}
     2  {{ $icon := .Get "icon" }}
     3  {{ $title := default ($type | title) (.Get "title") }}
     4  
     5  
     6  <blockquote class="gdoc-hint {{ $type | lower }}">
     7    <div class="gdoc-hint__title flex align-center">
     8      {{- with $icon -}}
     9        <svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
    10        <span>{{ $title }}</span>
    11      {{- else -}}
    12        <i class="fa {{ $type | lower }}" title="{{ $title }}"></i>
    13      {{- end -}}
    14    </div>
    15    <div class="gdoc-hint__text">{{ .Inner | $.Page.RenderString }}</div>
    16  </blockquote>