From 965f24ab922c7b71c9335514f74ddce9964a758a Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Mon, 26 Jan 2026 07:02:03 +0100 Subject: [PATCH] Meta tag noindex sur test.decp.info --- src/app.py | 13 ++++++++++--- src/assets/robots.txt | 6 ------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/app.py b/src/app.py index 61bae1a..0bf8cd2 100644 --- a/src/app.py +++ b/src/app.py @@ -9,14 +9,21 @@ from flask import Response, send_from_directory load_dotenv() +development = os.getenv("DEVELOPMENT").lower() == "true" + +meta_tags = [ + {"name": "viewport", "content": "width=device-width, initial-scale=1"}, +] + +if development: + meta_tags.append({"name": "robots", "content": "noindex"}) + app = Dash( external_stylesheets=[dbc.themes.SIMPLEX], title="decp.info", use_pages=True, compress=True, - meta_tags=[ - {"name": "viewport", "content": "width=device-width, initial-scale=1"}, - ], + meta_tags=meta_tags, ) # COSMO (belle font, blue), # UNITED (rouge, ubuntu font), diff --git a/src/assets/robots.txt b/src/assets/robots.txt index 0ce9c15..c2a49f4 100644 --- a/src/assets/robots.txt +++ b/src/assets/robots.txt @@ -1,8 +1,2 @@ -# START YOAST BLOCK -# CopiƩ depuis https://next.ink/robots.txt -# --------------------------- User-agent: * Allow: / - -# --------------------------- -# END YOAST BLOCK