Add aside shortcode

This commit is contained in:
2021-11-06 17:02:59 -05:00
parent 42f0046747
commit 4e27a6ce8a
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<aside>
{{ with .Inner }}
{{ . | markdownify }}
{{ else }}
{{ errorf "The aside shortcode needs to be a closing one (similar to the highlight shortcode, see https://gohugo.io/templates/shortcode-templates/#inner" }}
{{ end }}
</aside>