Skip to content

Commit ac88684

Browse files
committed
Add pricing to Masterclass Rich Data
1 parent c9c30e5 commit ac88684

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

masterclasses.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,16 @@ Five simple steps:
307307
"@type": "Course",
308308
"name": "{{ mc.title }}",
309309
"description": "{{ mc.intro | strip_html | escape }}",
310-
"url": "{{ page.url | absolute_url }}#masterclass-{{ mc.image }}"{% if mc.price %},
310+
"url": "{{ page.url | absolute_url }}#masterclass-{{ mc.image }}",
311311
"offers": {
312312
"@type": "Offer",
313-
"price": "{{ mc.price }}",
313+
{% if mc.price %}
314+
"price": "{{ mc.price }}",
315+
{% else %}
316+
"price": "2500",
317+
{% endif %}
314318
"priceCurrency": "USD"
315-
}{% endif %}
319+
}
316320
}
317321
}{% unless forloop.last %},{% endunless %}
318322
{% endfor %}

0 commit comments

Comments
 (0)