Define meta specific to each course so that social sharing will pickup content specific to that course

Unable to edit my previous topic (Can we add meta card for each courses?) hence creating this in the development sub-forum. Alternatively please could a mod merge this for me and move to development.

Currently in openedx if we add meta data tags on the main.html page it also affects all the downstream pages including courses.

Would like to know how can I override meta data for each course so that when I share a particular course link that course’s meta data is shown.?

e.g. I don’t want the homepage title / image to be shown on a social media card if the link to an individual course is shared.

Any suggestions / recommendations would be appreciated.
Thank you!