diff --git a/frontend/index.html b/frontend/index.html index 7474f399..dd1ceb76 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,6 +4,7 @@ + Frappe Wiki diff --git a/wiki/www/wiki.py b/wiki/www/wiki.py index de899f20..ab0a3deb 100644 --- a/wiki/www/wiki.py +++ b/wiki/www/wiki.py @@ -5,9 +5,13 @@ from frappe.utils import get_system_timezone no_cache = 1 +sitemap = 0 + +ROBOTS_DIRECTIVE = "noindex, nofollow" def get_context(): + frappe.local.response_headers.set("X-Robots-Tag", ROBOTS_DIRECTIVE) csrf_token = frappe.sessions.get_csrf_token() frappe.db.commit() # nosemgrep context = frappe._dict()