#413 remove poet vazn pages from sitemap

This commit is contained in:
Hamid Reza Mohammadi 2023-12-11 11:30:13 +03:30
parent 2c737e0d96
commit 361e136b04

View File

@ -96,7 +96,7 @@ namespace RMuseum.Services.Implementation
string poetSitemap = Path.Combine(dir, $"{poet.Id}.xml");
WriteSitemap(poetSitemap,
await context.GanjoorPages.Where(p => p.PoetId == poet.Id).OrderBy(p => p.Id).Select(p => p.FullUrl).ToListAsync()
await context.GanjoorPages.Where(p => p.PoetId == poet.Id && p.UrlSlug != "vazn").OrderBy(p => p.Id).Select(p => p.FullUrl).ToListAsync()
);
sitemaps.Add(poetSitemap);