From 6c98d945553c4e99688f44dc33b79d9dbd7e1602 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Thu, 23 Jan 2025 16:07:06 +1300 Subject: [PATCH] only include indexable posts in sitemap.xml --- app/main/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/routes.py b/app/main/routes.py index 0956b6c9..d5a92ab2 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -466,7 +466,7 @@ def robots(): @cache.cached(timeout=6000) def sitemap(): posts = Post.query.filter(Post.from_bot == False, Post.deleted == False, Post.instance_id == 1, Post.indexable == True) - posts = posts.order_by(desc(Post.posted_at)).limit(100) + posts = posts.order_by(desc(Post.posted_at)).limit(500) resp = make_response(render_template('sitemap.xml', posts=posts, current_app=current_app)) resp.mimetype = 'text/xml'