Add basic JS setup for the editorial content index

This commit is contained in:
Tibor Leupold 2022-10-07 14:46:38 -07:00
Родитель be310e76cf
Коммит c1c33c40e3
3 изменённых файлов: 15 добавлений и 2 удалений

Просмотреть файл

@ -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();