fix: fix nested hint rendering issues (#391)

uci-hugo-doc
Robert Kaussow 2022-04-28 11:26:45 +02:00 committed by GitHub
parent d724618457
commit 0a5af2e8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5,12 +5,12 @@
<blockquote class="gdoc-hint {{ $type | lower }}"> <blockquote class="gdoc-hint {{ $type | lower }}">
<div class="gdoc-hint__title flex align-center"> <div class="gdoc-hint__title flex align-center">
{{ with $icon }} {{- with $icon -}}
<svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg> <svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
<span>{{ $title }}</span> <span>{{ $title }}</span>
{{ else }} {{- else -}}
<i class="fa {{ $type | lower }}" title="{{ $title }}"></i> <i class="fa {{ $type | lower }}" title="{{ $title }}"></i>
{{ end }} {{- end -}}
</div> </div>
<div class="gdoc-hint__text">{{ .Inner | $.Page.RenderString }}</div> <div class="gdoc-hint__text">{{ .Inner | $.Page.RenderString }}</div>
</blockquote> </blockquote>