Add paige/code.html shortcode

This commit is contained in:
Will Faught
2022-12-31 22:29:20 -08:00
parent 016a9f3e57
commit 85a7435d00
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<figure class="align-items-center d-flex flex-column">
{{ highlight .Inner (.Get 0 | default (.Get "lang")) (.Get 2 | default (.Get "options")) }}
{{ with (.Get 1 | default (.Get "caption")) }}
<figcaption class="figure-caption">{{ . }}</figcaption>
{{ end }}
</figure>