feat: add shortcode to embed html

This was implemented to embed drawio exports
This commit is contained in:
2025-11-07 19:15:21 +01:00
parent 57243489c8
commit 83a0754e46

View File

@@ -0,0 +1,13 @@
{{ $source := index .Params 0 }}
{{ with .Page.Resources.GetMatch $source | readFile }}
{{ .|safeHTML }}
{{ end }}
<style>
/* Reset the image width that is set in the theme
If wired styling issues appear, check if the theme is responsible and eventually unset this here
*/
img {
width: unset;
}
</style>