{{define "scripts"}}
<script src="/admin/assets/js/iziToast.min.js"></script>
<script> iziToast.show({ title: 'Hey', message: 'What would you like to add?' }); </script>
{{end}}
Although I define it as a script, I cannot get the message on the site when I run it.
I was expecting ‘What would you like to add?’
but I get ‘Uncaught ReferenceError: iziToast is not defined’
error in the console.