File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
< %inherit file="../main.html" />
16
16
< %block name="headextra">
17
- ## OG (Open Graph) title and description added below to give social media info to display
17
+ < %
18
+ site_domain = static.get_value('site_domain', settings.SITE_NAME)
19
+ site_protocol = 'https' if settings.HTTPS == 'on' else 'http'
20
+
21
+ og_img_url = "{protocol}://{domain}{path}".format(
22
+ protocol=site_protocol,
23
+ domain=site_domain,
24
+ path=course_image_urls['large']
25
+ )
26
+ %>
27
+ ## OG (Open Graph) title, image and description added below to give social media info to display
18
28
## (https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags)
19
29
< meta property ="og:title " content ="${course.display_name_with_default} " />
30
+ < meta property ="og:image " content ="${og_img_url} " />
20
31
< meta property ="og:description " content ="${get_course_about_section(request, course, 'short_description')} " />
21
32
</ %block>
22
33
You can’t perform that action at this time.
0 commit comments