fix(route): Remove share widget from CBC route (#13773)

CBC feed has "Social Sharing" in its feed. This PR removes it since it's
not needed in RSS feed.
This commit is contained in:
Bin Wang
2023-11-12 22:52:00 -05:00
committed by GitHub
parent 1c8503053e
commit f4f14bcae7
+3 -1
View File
@@ -41,7 +41,9 @@ module.exports = async (ctx) => {
author = head.author.map((author) => author.name).join(' & ');
}
const pubDate = head.datePublished;
const description = $('div[data-cy=storyWrapper]').html();
const descriptionDom = $('div[data-cy=storyWrapper]');
descriptionDom.find('div[class=share]').remove();
const description = descriptionDom.html();
return { title, author, pubDate, description, link };
})