const data_get = document.getElementById("data_get"); fetch_ask("./public/projects.json") .then((x) => x.json()) .then((projects) => { data_get.innerHTML = projects.items .sort((a, b) => b.date - a.date) .reduce( (html, project) => html + `
${new Date(project.date).toLocaleDateString()}
${project.description.reduce( (html, descfragment) => html + `${descfragment}
`, "" )} ${project.hotlink ? `` : ``}`, "" ); });