diff --git a/src/frontend/js/modules/table-of-content.js b/src/frontend/js/classes/table-of-content.js similarity index 100% rename from src/frontend/js/modules/table-of-content.js rename to src/frontend/js/classes/table-of-content.js diff --git a/src/frontend/js/modules/page.js b/src/frontend/js/modules/page.js index 78882a8..5a33c60 100644 --- a/src/frontend/js/modules/page.js +++ b/src/frontend/js/modules/page.js @@ -41,12 +41,12 @@ export default class Page { * @return {Promise} */ async createTableOfContent() { - const { default: TableOfContent } = await import(/* webpackChunkName: "table-of-content" */ './table-of-content'); + const { default: TableOfContent } = await import(/* webpackChunkName: "table-of-content" */ '../classes/table-of-content'); return new TableOfContent({ tagSelector: 'h2.block-header--anchor,' + - 'h3.block-header--anchor,' + + 'h3.block-header--anchor,' + 'h4.block-header--anchor', tocWrapperSelector: '#layout-sidebar-right', });