include organization data on homepage

This commit is contained in:
Tobias Brunner 2025-03-27 16:00:26 +01:00
parent d69b540fcc
commit 388b596f3f
No known key found for this signature in database

View file

@ -45,18 +45,21 @@ def json_ld_structured_data(context):
# Handle different page types # Handle different page types
if view_name == "homepage": if view_name == "homepage":
data = { data = [
"@context": "https://schema.org", {
"@type": "WebSite", "@context": "https://schema.org",
"name": "Servala - Open Cloud Native Service Hub", "@type": "WebSite",
"url": base_url, "name": "Servala - Open Cloud Native Service Hub",
"description": "Servala connects businesses, developers, and cloud service providers on one unique hub with secure, scalable, and easy-to-use cloud-native services.", "url": base_url,
"potentialAction": { "description": "Servala connects businesses, developers, and cloud service providers on one unique hub with secure, scalable, and easy-to-use cloud-native services.",
"@type": "SearchAction", "potentialAction": {
"target": f"{base_url}/service/?search={{search_term_string}}", "@type": "SearchAction",
"query-input": "required name=search_term_string", "target": f"{base_url}/service/?search={{search_term_string}}",
"query-input": "required name=search_term_string",
},
}, },
} organization_data,
]
elif view_name == "service_list": elif view_name == "service_list":
data = { data = {