SoftwareApplication in LD is not compatible yet
This commit is contained in:
parent
5ab10f2264
commit
edf453244d
1 changed files with 4 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue