25 lines
1.4 KiB
HTML
25 lines
1.4 KiB
HTML
|
<figure class="blockquote">
|
||
|
<blockquote{{ with .Attributes.cite }} cite="{{ . }}"{{ end }}>
|
||
|
{{ if .AlertType}}
|
||
|
{{ if in (slice "info" "note" "tip") .AlertType }}
|
||
|
<svg class="info-mark" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><title>{{.AlertType}}</title><path fill="currentColor" d="M11 17h2v-6h-2zm1-8q.425 0 .713-.288T13 8t-.288-.712T12 7t-.712.288T11 8t.288.713T12 9m0 13q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22"/></svg>
|
||
|
<p class="alert-title" aria-hidden="true">{{.AlertTitle}}</p>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ if eq .AlertType "important"}}
|
||
|
{{ end }}
|
||
|
{{ if eq .AlertType "warning"}}
|
||
|
{{ end }}
|
||
|
{{ if eq .AlertType "caution"}}
|
||
|
{{ end }}
|
||
|
{{ if eq .AlertType "danger"}}
|
||
|
{{ end }}
|
||
|
{{ else }}
|
||
|
<svg class="quote-mark" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 290 290" width="1em" height="1em" fill="currentColor"><title>quote</title><path d="M22.12 145v97.65h97.65V145H70.95c0-26.92 21.9-48.82 48.82-48.82V47.35c-53.93 0-97.65 43.72-97.65 97.65zm245.76-48.82V47.35c-53.93 0-97.65 43.72-97.65 97.65v97.65h97.65V145h-48.82c-.01-26.92 21.89-48.82 48.82-48.82z"></path></svg>
|
||
|
{{ end }}
|
||
|
{{ .Text }}
|
||
|
</blockquote>
|
||
|
{{ with .Attributes.caption }}
|
||
|
<figcaption>{{ . | $.Page.RenderString }}</figcaption>
|
||
|
{{ end }}
|
||
|
</figure>
|