Test to see if using {{ sit.baseurl }} fixes the permalink issue.