From c1c33c40e3ab20cdd84cb7c4d4646f7d3fa29333 Mon Sep 17 00:00:00 2001 From: Tibor Leupold Date: Fri, 7 Oct 2022 14:46:38 -0700 Subject: [PATCH] Add basic JS setup for the editorial content index --- esbuild.config.js | 4 ++++ .../pages/buyersguide/editorial_content_index_page.html | 8 ++++++-- source/js/buyers-guide/editorial-content-index.js | 5 +++++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 source/js/buyers-guide/editorial-content-index.js diff --git a/esbuild.config.js b/esbuild.config.js index 37c1778a9..4f75ade53 100644 --- a/esbuild.config.js +++ b/esbuild.config.js @@ -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, diff --git a/network-api/networkapi/templates/pages/buyersguide/editorial_content_index_page.html b/network-api/networkapi/templates/pages/buyersguide/editorial_content_index_page.html index 7c28148ec..d3a4b75c4 100644 --- a/network-api/networkapi/templates/pages/buyersguide/editorial_content_index_page.html +++ b/network-api/networkapi/templates/pages/buyersguide/editorial_content_index_page.html @@ -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 @@ {% endblock guts %} + +{% block extra_scripts %} + {{ block.super }} + +{% endblock extra_scripts %} diff --git a/source/js/buyers-guide/editorial-content-index.js b/source/js/buyers-guide/editorial-content-index.js new file mode 100644 index 000000000..accdcef55 --- /dev/null +++ b/source/js/buyers-guide/editorial-content-index.js @@ -0,0 +1,5 @@ +function main(){ + console.log("HELLO WORLD!"); +}; + +main();