seitime-frappe/frappe/www/about.py
Faris Ansari 51ece4a920 feat: Flip sitemap switch
BREAKING CHANGE
A route is added to the sitemap if no_sitemap is not set.
This PR reverses this design. Because sitemap should contain publicly accessible pages and not utility pages.
Also, having lots of utility pages on sitemap does more harm than good.
2019-03-19 15:12:28 +05:30

16 lines
354 B
Python

# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
sitemap = 1
def get_context(context):
context.doc = frappe.get_doc("About Us Settings", "About Us Settings")
context.parents = [
{ "name": frappe._("Home"), "route": "/" }
]
return context