mirror of
https://git.adityakumar.xyz/blog.git
synced 2024-11-14 12:49:43 +00:00
37 lines
764 B
HTML
37 lines
764 B
HTML
|
{{ if .IsNamedParams -}}
|
||
|
|
||
|
{{ if eq (.Get "details") "true" -}}
|
||
|
|
||
|
<details class="admonition {{ .Get "type" }}">
|
||
|
{{- with .Get "title" }}<summary class="admonition-title">{{ . }}</summary>{{ end }}
|
||
|
{{ .Inner }}
|
||
|
</details>
|
||
|
|
||
|
{{- else -}}
|
||
|
|
||
|
<div class="admonition {{ .Get "type" }}">
|
||
|
{{- with .Get "title" }}<p class="admonition-title">{{ . }}</p>{{ end }}
|
||
|
{{ .Inner }}
|
||
|
</div>
|
||
|
|
||
|
{{- end }}
|
||
|
|
||
|
{{- else -}}
|
||
|
|
||
|
{{ if eq (.Get 2) "true" -}}
|
||
|
|
||
|
<details class="admonition {{ .Get 0 }}">
|
||
|
{{- with .Get 1 }}<summary class="admonition-title">{{ . }}</summary>{{ end }}
|
||
|
{{ .Inner }}
|
||
|
</details>
|
||
|
|
||
|
{{- else -}}
|
||
|
|
||
|
<div class="admonition {{ .Get 0 }}">
|
||
|
{{- with .Get 1 }}<p class="admonition-title">{{ . }}</p>{{ end }}
|
||
|
{{ .Inner }}
|
||
|
</div>
|
||
|
|
||
|
{{- end }}
|
||
|
|
||
|
{{- end }}
|