List of Posts vs Individual Post

Jul 1, 2009 at 9:59 PM


I have a neat little script from to allow my visitors to share my post on their services. I've added this script to the PostView.ascx file in my theme and it appears and works. The issue is that when you land on my blog home page, it lists 10 posts and the Share link is there under each post, but when you go to share it assumes the url of the page you're on. So each of the 10 share links all use the default page. If I click a post and use share it works correctly, linking to that one post.

Is there a way in PostView.ascx to simply check if this is on a list view or individual view?