mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-21 20:30:39 +00:00
fix: fix nested hint rendering issues (#391)
This commit is contained in:
parent
d724618457
commit
0a5af2e8da
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user