From 2517f748de42cb4babcc966a98cda7d6c36377ef Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Mon, 5 Nov 2018 15:48:44 +0800 Subject: feat(*): init admonition & refactor iconfont --- 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