fix: feat: locally host known script
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user