From 70bfec27421afede2427c360edc21c6da6381aec Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 5 Oct 2022 11:41:28 -0400 Subject: [PATCH] Improve sitemaps --- web/pages/server-sitemap.xml.tsx | 2 +- web/public/sitemap.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/pages/server-sitemap.xml.tsx b/web/pages/server-sitemap.xml.tsx index 15cb734c..8e1a137e 100644 --- a/web/pages/server-sitemap.xml.tsx +++ b/web/pages/server-sitemap.xml.tsx @@ -14,7 +14,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => { loc: `https://manifold.markets/${market.creatorUsername}/${market.slug}`, changefreq: market.volume24Hours > 10 ? 'hourly' : 'daily', priority: score(market.popularityScore ?? 0), - lastmod: market.lastUpdatedTime, + lastmod: new Date(market.lastUpdatedTime ?? 0).toISOString(), })) as ISitemapField[] return await getServerSideSitemap(ctx, fields) diff --git a/web/public/sitemap.xml b/web/public/sitemap.xml index c52d0c0e..1ae2e3a6 100644 --- a/web/public/sitemap.xml +++ b/web/public/sitemap.xml @@ -1,10 +1,13 @@ https://manifold.marketshourly1.0 +https://manifold.markets/searchhourly1.0 https://manifold.markets/homehourly0.2 https://manifold.markets/leaderboardsdaily0.2 https://manifold.markets/add-fundsdaily0.2 https://manifold.markets/challengesdaily0.2 https://manifold.markets/charitydaily0.7 https://manifold.markets/groupsdaily0.2 +https://manifold.markets/tournamentsdaily0.2 +https://manifold.markets/labsdaily0.2