Skip to content

Commit

Permalink
Update posts category on sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBailaAndrade committed Jan 3, 2024
1 parent 8260b75 commit d2cd9b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workspaces/cms-scripts/src/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ const parsePosts = async () => {
const { filenameMap } = await getPosts();
const categories: string[] = [];

filenameMap.forEach(({ locale, category, slug, published_date }) => {
filenameMap.forEach(({ locale, category: filenameCategory, slug, published_date }) => {
const category = filenameCategory === 'engineering' ? 'developers' : filenameCategory;

if (!categories.includes(category)) {
categories.push(category);

Expand Down

0 comments on commit d2cd9b9

Please sign in to comment.