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.
16 lines
354 B
Python
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
|