diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index 629bd3fc2e96..83861ab31418 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -17,9 +17,20 @@ <%inherit file="../main.html" /> <%block name="headextra"> - ## OG (Open Graph) title and description added below to give social media info to display + <% + site_domain = static.get_value('site_domain', settings.SITE_NAME) + site_protocol = 'https' if settings.HTTPS == 'on' else 'http' + + og_img_url = "{protocol}://{domain}{path}".format( + protocol=site_protocol, + domain=site_domain, + path=course_image_urls['large'] + ) + %> + ## OG (Open Graph) title, image and description added below to give social media info to display ## (https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags) +