forked from github/pelican-alchemy
Allow providing JavaScript assets for generated website
Fixes #64, #65 Now users who wish to use Bootstrap dynamic elements (like dropdown menus) can enable JavaScript either by including required scripts into their static assets or by referencing their CDN URLs. By default Alchemy uses no JavaScript - that has not changed.
This commit is contained in:
parent
e11ebff22e
commit
89dbba7a42
2 changed files with 7 additions and 0 deletions
|
|
@ -59,6 +59,10 @@
|
|||
{% include 'include/footer.html' %}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{% for script in THEME_JS_OVERRIDES or () %}
|
||||
<script type="text/javascript" src="{{ url(script) }}" crossorigin="anonymous"></script>
|
||||
{% endfor %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
Reference in a new issue