1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-25 18:58:41 +01:00

fix loading of page-specific js

This commit is contained in:
Matthias Kretschmann 2017-10-30 09:36:30 +01:00
parent bb02324e4e
commit aadc287771
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -8,9 +8,9 @@
<script src="/assets/js/ipdb.min.js"></script>
{% if page.js %}
<script src="/assets/js/{{ page.js }}"></script>
<script src="/assets/js/{{ page.js }}.min.js"></script>
{% elsif layout.js %}
<script src="/assets/js/{{ layout.js }}"></script>
<script src="/assets/js/{{ layout.js }}.min.js"></script>
{% endif %}