From 5a5069a4198ab03d17fcc2198c2ec856dfd8003d Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 27 Apr 2022 13:47:51 -0400 Subject: [PATCH] sitemap: market changefreq; homepage priority = 1 --- web/pages/server-sitemap.xml.tsx | 2 +- web/public/sitemap-0.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/pages/server-sitemap.xml.tsx b/web/pages/server-sitemap.xml.tsx index e8f77e58..9a3cdfe8 100644 --- a/web/pages/server-sitemap.xml.tsx +++ b/web/pages/server-sitemap.xml.tsx @@ -15,7 +15,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => { const fields = sortedMarkets.map((market) => ({ // See https://www.sitemaps.org/protocol.html loc: market.url, - changefreq: 'hourly', + changefreq: market.volume24Hours > 10 ? 'hourly' : 'daily', priority: market.volume24Hours + market.volume7Days > 100 ? 0.7 : 0.1, // TODO: Add `lastmod` aka last modified time })) as ISitemapField[] diff --git a/web/public/sitemap-0.xml b/web/public/sitemap-0.xml index 6378f587..3b4618fb 100644 --- a/web/public/sitemap-0.xml +++ b/web/public/sitemap-0.xml @@ -1,6 +1,6 @@ -https://manifold.marketshourly0.7 +https://manifold.marketshourly1.0 https://manifold.markets/marketshourly0.2 -https://manifold.markets/leaderboardshourly0.2 +https://manifold.markets/leaderboardsdaily0.2 \ No newline at end of file