Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/admonition.html')
-rw-r--r--layouts/shortcodes/admonition.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/admonition.html b/layouts/shortcodes/admonition.html
index 8269e20..e7cbf99 100644
--- a/layouts/shortcodes/admonition.html
+++ b/layouts/shortcodes/admonition.html
@@ -13,7 +13,10 @@
{{- $iconMap = dict "example" "admonition-icon icon-example" | merge $iconMap -}}
{{- $iconMap = dict "quote" "admonition-icon icon-quote" | merge $iconMap -}}
{{- $iconDetails := "admonition-icon admonition-icon-arrow-right" -}}
+{{- $aside := (.Get `aside`) | default false }}
+
+{{- if $aside -}}<aside>{{- end -}}
{{- if .IsNamedParams -}}
{{- $type := .Get "type" | default "note" -}}
<div class="details admonition {{ $type }}{{ if .Get `open` | ne false }} open{{ end }}">
@@ -41,3 +44,4 @@
</div>
</div>
{{- end -}}
+{{- if $aside -}}</aside>{{- end -}} \ No newline at end of file