changeset b7041b45179b in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=b7041b45179b
description:
        Remove events from sitemap

        Google Calendar does not allow crawl.
diffstat:

 app.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 4eca33d53ebc -r b7041b45179b app.py
--- a/app.py    Wed Jul 17 09:31:10 2019 +0200
+++ b/app.py    Wed Jul 17 22:08:37 2019 +0200
@@ -68,6 +68,7 @@
     'sitemap.xml']
 app.config['CDN_DOMAIN'] = os.environ.get('CDN_DOMAIN')
 app.config['CDN_HTTPS'] = True
+app.config['SITEMAP_IGNORE_ENDPOINTS'] = ['events', 'events-alt']
 cache.init_app(app)
 CDN(app)
 Gravatar(app, size=198, default='mp', use_ssl=True)

Reply via email to