save this as sidebar.js this is the logic the site uses to find the content
fetch('sidebar.html')
.then(response => response.text())
.then(data => {
document.getElementById('sidebar-container').innerHTML = data;
})
.catch(error => console.error('Error loading sidebar:', error));
Put the line below where ever you want the sidebar content to appear.
Also put this in the section to call the sidebar.js file when the page loads.