We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc9738d commit 8283131Copy full SHA for 8283131
2 files changed
layouts/partials/_elements/admonition.html
@@ -0,0 +1,6 @@
1
+<div class="admonition {{ .title }}">
2
+ <div class="admonition-title"> {{ .title | humanize }}</div>
3
+ <p>
4
+ {{ .body | markdownify }}
5
+ </p>
6
+</div>
layouts/shortcodes/admonition.html
@@ -52,9 +52,6 @@
52
53
*/}}
54
55
-<div class="admonition {{ .Get 0 }}">
56
- <div class="admonition-title"> {{ .Get 0 | humanize }}</div>
57
- <p>
58
- {{ .Inner | markdownify }}
59
- </p>
60
-</div>
+{{- $title := .Get 0 -}}
+{{- $body := .Inner -}}
+{{- partial "_elements/admonition.html" (dict "title" $title "body" $body) -}}
0 commit comments