fix: feat: locally host known script
This commit is contained in:
@@ -1,13 +1,14 @@
|
|||||||
{{ $source := index .Params 0 }}
|
{{ $source := index .Params 0 }}
|
||||||
|
<div class="embedded-html">
|
||||||
{{ with .Page.Resources.GetMatch $source | readFile }}
|
{{ with .Page.Resources.GetMatch $source | readFile }}
|
||||||
{{ .|safeHTML }}
|
{{ replace . "https://viewer.diagrams.net/js/viewer-static.min.js" "/js/viewer-static.min.js"|safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
<style>
|
<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
|
If wired styling issues appear, check if the theme is responsible and eventually unset this here
|
||||||
*/
|
*/
|
||||||
img {
|
.geAdaptiveAsset {
|
||||||
width: unset;
|
width: unset;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
7625
static/js/viewer-static.min.js
vendored
Normal file
7625
static/js/viewer-static.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user