Give pages enough to construct a share button.

Just passing a couple of variables to the template.  This seems messy, but I'm not sure there's a better way to do it.