generated from westfarn/web_django_template
Ship College Craft public site and point CI deploys at college_craft.
Replaces template branding with College Craft pages, assets, and copy, and matches Gitea deploy workflows to the server-infra catalog name and master branch so beta deploys actually run. Closes #1
This commit is contained in:
@@ -64,6 +64,12 @@ def tianji_tracking(request):
|
||||
elif namespace == "social":
|
||||
nav_section = "social"
|
||||
|
||||
page_name = url_name
|
||||
if namespace == "blog":
|
||||
page_name = "blog"
|
||||
elif namespace == "public" and url_name:
|
||||
page_name = url_name
|
||||
|
||||
return {
|
||||
"tianji_enabled": getattr(settings, "TIANJI_ENABLED", False)
|
||||
and bool(getattr(settings, "TIANJI_WEBSITE_ID", ""))
|
||||
@@ -74,6 +80,6 @@ def tianji_tracking(request):
|
||||
"https://tianji.aimloperations.com/tracker.js",
|
||||
),
|
||||
"tianji_website_id": getattr(settings, "TIANJI_WEBSITE_ID", ""),
|
||||
"page_name": url_name,
|
||||
"page_name": page_name,
|
||||
"nav_section": nav_section,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user