fix: add app_name as document title

This commit is contained in:
Jannat Patel
2025-04-08 18:12:21 +05:30
parent 45c530e53a
commit a8d4572aef
2 changed files with 2 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="{{ favicon or '/assets/lms/frontend/favicon.png' }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frappe Learning</title>
<title>{{ title or "Frappe Learning" }}</title>
<meta name="title" content="{{ meta.title }}" />
<meta name="image" content="{{ meta.image }}" />
<meta name="description" content="{{ meta.description }}" />

View File

@@ -15,12 +15,9 @@ def get_context():
context.meta = get_meta(app_path)
else:
context.meta = {}
csrf_token = frappe.sessions.get_csrf_token()
frappe.db.commit() # nosemgrep
context.csrf_token = csrf_token
context.setup_complete = cint(frappe.get_system_settings("setup_complete"))
capture("active_site", "lms")
context.favicon = frappe.db.get_single_value("Website Settings", "favicon")
context.title = frappe.db.get_single_value("Website Settings", "app_name")
return context