I not sure where this here is coming from:
...
<!--- Your global JavaScript code can go here -->
<script async charset="utf-8" src="https://cdn.embedly.com/widgets/platform.js"></script>
...
But I would like to get rid of it or maybe import it into my File System and staticly reference it.
I am using the Quark Open Publishing Theme. Is this related to this or is it Grav specific?
Maybe someone already did it and can help me.
Looks like it’s really comming from the theme:
I just tried to open embedly.com, and it seems they don’t even have valid certificates. Maybe worth creating an issue on the theme repo
1 Like
I have created an Issue on the Repo-Page. Thanks for pointing this out
Okay, the Creator of the Plugin said he wont fix this nor will he provide a way to make it customizable.
My Question would now be if there is a Hook on which I could subscribe to always hard-overwrite this URL with a local File-Path with the same File but provided from my Server?
Okay so for now (I hope I remeber when the Theme gets an Update to repeat this) I have changed the Theme Base Template and changed the script-import to:
<script async charset="utf-8" src="{{ url('theme://js/platform.js') }}"></script>
and placed the Script-File inside the JS-Path of the Theme. Works. Nice.
But the thing with an UpdateInstalled-Hook would be cool. Is this planned?
It would be easy to implement I think.