Skip to content

Commit

Permalink
Update sitemap URL structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gocemitevski committed Jan 31, 2024
1 parent 9faf0b7 commit dae68f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildSitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const municipalitiesSort = () => {
return sortedMunicipalities;
};

const homepage = `https://gocemitevski.github.io/sredni-ucilista-mk/?`;
const homepage = `https://gocemitevski.github.io/sredni-ucilista-mk`;
const sitemap = data.uchilishta.map(item => `${homepage}/uchilishte/${encodeURIComponent(cleanName(transliterate(item.ime + ' ' + item.opstina)).toLowerCase())}`);
municipalitiesSort().map(item => sitemap.push(`${homepage}/opshtina/${encodeURIComponent(cleanName(transliterate(item[0])).toLowerCase())}`));
console.log(`<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">${sitemap.map(el => `<url><loc>${el}</loc></url>`).join('')}</urlset>`);

0 comments on commit dae68f0

Please sign in to comment.