fix: feat: locally host known script

This commit is contained in:
2025-11-08 21:31:51 +01:00
parent 517ceacf79
commit 428dcb8727
2 changed files with 7632 additions and 6 deletions

View File

@@ -1,13 +1,14 @@
{{ $source := index .Params 0 }}
{{ with .Page.Resources.GetMatch $source | readFile }}
{{ .|safeHTML }}
{{ end }}
<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
/* 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
*/
img {
.geAdaptiveAsset {
width: unset;
}
</style>