17 lines
No EOL
446 B
HTML
17 lines
No EOL
446 B
HTML
{{- $type := or .type "note" }}
|
|
{{- $title := .title }}
|
|
{{- $text := .text }}
|
|
{{ "<!-- alert block -->" | safeHTML }}
|
|
<aside class="admonition"{{ with $type }} data-type="{{.}}"{{end}}>
|
|
{{- with $title }}
|
|
<header class="admonition-header">
|
|
<p class="admonition__title" aria-hidden="true">{{.}}</p>
|
|
</header>
|
|
{{- end }}
|
|
{{- with $text }}
|
|
<div class="admonition__text">
|
|
{{ . }}
|
|
</div>
|
|
{{- end }}
|
|
</aside>
|
|
{{ "<!-- end alert block -->" | safeHTML }} |