Meta tag noindex sur test.decp.info
This commit is contained in:
+10
-3
@@ -9,14 +9,21 @@ from flask import Response, send_from_directory
|
|||||||
|
|
||||||
load_dotenv()
|
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(
|
app = Dash(
|
||||||
external_stylesheets=[dbc.themes.SIMPLEX],
|
external_stylesheets=[dbc.themes.SIMPLEX],
|
||||||
title="decp.info",
|
title="decp.info",
|
||||||
use_pages=True,
|
use_pages=True,
|
||||||
compress=True,
|
compress=True,
|
||||||
meta_tags=[
|
meta_tags=meta_tags,
|
||||||
{"name": "viewport", "content": "width=device-width, initial-scale=1"},
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
# COSMO (belle font, blue),
|
# COSMO (belle font, blue),
|
||||||
# UNITED (rouge, ubuntu font),
|
# UNITED (rouge, ubuntu font),
|
||||||
|
|||||||
@@ -1,8 +1,2 @@
|
|||||||
# START YOAST BLOCK
|
|
||||||
# Copié depuis https://next.ink/robots.txt
|
|
||||||
# ---------------------------
|
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Allow: /
|
Allow: /
|
||||||
|
|
||||||
# ---------------------------
|
|
||||||
# END YOAST BLOCK
|
|
||||||
|
|||||||
Reference in New Issue
Block a user