From fecc9b268410c8fefcd1ca32bc4228bba9002178 Mon Sep 17 00:00:00 2001 From: GNUxeava Date: Fri, 11 Mar 2022 10:32:10 +0530 Subject: use theme --- layouts/shortcodes/admonition.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 layouts/shortcodes/admonition.html (limited to 'layouts/shortcodes/admonition.html') diff --git a/layouts/shortcodes/admonition.html b/layouts/shortcodes/admonition.html new file mode 100644 index 0000000..fa5aacb --- /dev/null +++ b/layouts/shortcodes/admonition.html @@ -0,0 +1,37 @@ +{{ if .IsNamedParams -}} + + {{ if eq (.Get "details") "true" -}} + +
+ {{- with .Get "title" }}{{ . }}{{ end }} + {{ .Inner }} +
+ + {{- else -}} + +
+ {{- with .Get "title" }}

{{ . }}

{{ end }} + {{ .Inner }} +
+ + {{- end }} + +{{- else -}} + + {{ if eq (.Get 2) "true" -}} + +
+ {{- with .Get 1 }}{{ . }}{{ end }} + {{ .Inner }} +
+ + {{- else -}} + +
+ {{- with .Get 1 }}

{{ . }}

{{ end }} + {{ .Inner }} +
+ + {{- end }} + +{{- end }} \ No newline at end of file -- cgit v1.2.3