SoftwareApplication in LD is not compatible yet

This commit is contained in:
Tobias Brunner 2025-07-17 09:38:15 +02:00
parent 5ab10f2264
commit edf453244d
Signed by: tobru
SSH key fingerprint: SHA256:kOXg1R6c11XW3/Pt9dbLdQvOJGFAy+B2K6v6PtRWBGQ

View file

@ -242,7 +242,9 @@ def json_ld_structured_data(context):
# Add image if available
if hasattr(offering.service, "get_logo") and offering.service.get_logo:
data["image"] = request.build_absolute_uri(offering.service.get_logo.url)
data["image"] = request.build_absolute_uri(
offering.service.get_logo.url
)
# Create individual offers for each plan with pricing
offers = []
@ -351,12 +353,7 @@ def json_ld_structured_data(context):
}
# Add about field based on related entities
if article.related_service:
data["about"] = {
"@type": "SoftwareApplication",
"name": article.related_service.name,
}
elif article.related_consulting_partner:
if article.related_consulting_partner:
data["about"] = {
"@type": "Organization",
"name": article.related_consulting_partner.name,