Add basic JS setup for the editorial content index
This commit is contained in:
Родитель
be310e76cf
Коммит
c1c33c40e3
|
@ -48,6 +48,10 @@ const sources = {
|
|||
source: `buyers-guide/search.js`,
|
||||
bundle: true,
|
||||
},
|
||||
"bg-editorial-content-index": {
|
||||
source: `buyers-guide/editorial-content-index.js`,
|
||||
bundle: true,
|
||||
},
|
||||
"research-hub-library": {
|
||||
source: `foundation/pages/research-hub-library.js`,
|
||||
bundle: true,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% extends "pages/buyersguide/base.html" %}
|
||||
{% load wagtailcore_tags %}
|
||||
{% load wagtailcore_tags wagtailimages_tags localization %}
|
||||
{% load static wagtailcore_tags wagtailimages_tags localization %}
|
||||
|
||||
|
||||
{% block category_nav %}{% endblock category_nav %}
|
||||
|
@ -49,3 +48,8 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endblock guts %}
|
||||
|
||||
{% block extra_scripts %}
|
||||
{{ block.super }}
|
||||
<script src="{% static "_js/bg-editorial-content-index.compiled.js" %}" async defer></script>
|
||||
{% endblock extra_scripts %}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
function main(){
|
||||
console.log("HELLO WORLD!");
|
||||
};
|
||||
|
||||
main();
|
Загрузка…
Ссылка в новой задаче