Hello Jeremy, your function causes the page links to appear twice on the post (1 at the top before the post and another at the bottom after the post). Is this the right behaviour for the function?
I ask this because I removed the default function in my content.php and that removed the page links after jetpack sharing (initially page links where tripled on the post).