if(window.location['pathname'] == "/post.html"){ loadPost(); } function getParameter(key) { // Address of the current window let address = window.location.search // Returns a URLSearchParams object instance let parameterList = new URLSearchParams(address) // Returning the respected value associated // with the provided key return parameterList.get(key) } async function loadPost() { let id = getParameter("id"); let header = document.createElement("jl-header"); let footer = document.createElement("jl-footer"); let content = document.createElement("div"); if(id == null) { content.innerHTML = "