Extract links to share pages to SNS out of the layout file