var currentPath = window.location.pathname; /* --- SCRIPT FOR THE RIGHT SIDEBAR --- */ // HTML template for the right sidebar var leftSidebarHTML = `

Navigation

`; document.querySelector("#leftSidebarContent").innerHTML = leftSidebarHTML; // Variables for the list of navigation links var navList = ""; var navLinks = [ `
  • Home
  • `, `
  • About
  • `, `
  • Blog
  • `, `
  • Articles
  • `, `
  • My Creations
  • `, `
  • My Mods
  • `, `
  • Playlists
  • `, `
  • Featured
  • `, `
  • Resources
  • `, `
  • Shrines
  • `, `
  • Links
  • `, `
  • Changelog
  • `, `
  • Site Map
  • ` ]; // To show subpage links when visiting certain pages if (currentPath.includes("mymods/")) { navLinks.splice(6, 0, ` `); } if (currentPath.includes("changelog/")) { navLinks.splice(12, 0, ` `); } // Go through the list of navigation link and display them for (let i = 0; i < navLinks.length; i++) { navList += navLinks[i]; } document.querySelector(".nav-links").innerHTML = navList; /* --- SCRIPT FOR THE FOOTER --- */ // Generate footer content var footerHTML = ` Site Launched: September 11, 2022 by Leilukin `; document.querySelector("#footer").innerHTML = footerHTML;