Skip to content

Commit

Permalink
feat(shortcodes): add shortcodes for info boxes and icons
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Sep 7, 2024
1 parent 188f486 commit ca9c1d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/shortcodes/box.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class='p-4 mb-4 bg-{{ .Get "type" }} rounded'>
{{ .Inner | markdownify }}
</div>
1 change: 1 addition & 0 deletions layouts/shortcodes/icon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<i class="material-icons me-2" style="font-size: inherit;vertical-align: sub;">{{ .Get "icon" }}</i>

0 comments on commit ca9c1d6

Please sign in to comment.