commit 8f71159f2f42f73ed046b2363f329d7754fdf5e7 parent 910615bdb9fd1b30e4fda5980a02784ce57ab5d5 Author: Jack Mordaunt <jackmordaunt.dev@gmail.com> Date: Wed, 16 Jul 2025 13:01:14 -0300 shortcode/inline-svg.html: for showing svgs in markdown Diffstat:
| A | layouts/_shortcodes/inline-svg.html | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/layouts/_shortcodes/inline-svg.html b/layouts/_shortcodes/inline-svg.html @@ -0,0 +1,4 @@ +{{- $name := .Get "name" -}} +<div class="custom-icon"> + {{- readFile (printf "assets/images/%s.svg" $name) | safeHTML -}} +</div>