14 lines
484 B
HTML
14 lines
484 B
HTML
{{ $source := index .Params 0 }}
|
|
<div class="embedded-html">
|
|
{{ with .Page.Resources.GetMatch $source | readFile }}
|
|
{{ replace . "https://viewer.diagrams.net/js/viewer-static.min.js" "/js/viewer-static.min.js"|safeHTML }}
|
|
{{ end }}
|
|
</div>
|
|
<style>
|
|
/* Reset the image width that is set in the theme for
|
|
If wired styling issues appear, check if the theme is responsible and eventually unset this here
|
|
*/
|
|
.geAdaptiveAsset {
|
|
width: unset;
|
|
}
|
|
</style> |